Skip to content
  • Ingemar Ådahl's avatar
    Set Python shebang in build to /usr/bin/env python · 504c076b
    Ingemar Ådahl authored
    A common solution for developers using Linux distributions were
    /usr/bin/python is linked to /usr/bin/python3 is to put a python ->
    python2 symlink earlier in the PATH when working with python2-only
    projects. This doesn't work when shebangs bypasses any environment
    configuration.
    
    The change was generated by executing:
      sed -i 's|#!/usr/bin/python|#!/usr/bin/env python|' \
        $(grep -rl '#!/usr/bin/python' build)
    
    Change-Id: I2de77532fd31a0348ec58f4d9af4b7172dc1b9ed
    Reviewed-on: https://chromium-review.googlesource.com/559347
    
    
    Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
    Commit-Queue: Ingemar Ådahl <ingemara@opera.com>
    Cr-Commit-Position: refs/heads/master@{#484266}
    504c076b