Mysterie / uncompyle2

uncompyle2
642 stars 148 forks source link

call python via /usr/bin/env python to make script more portable #27

Closed kernelsmith closed 9 years ago

kernelsmith commented 9 years ago

The shebang line of the uncompyle2 script is not using /usr/bin/env python causing it to fail to run when invoked as a standalone script

uncompyle2# ./scripts/uncompyle2 -h
bash: ./scripts/uncompyle2: python: bad interpreter: No such file or directory

Changing the shebang line to #!/usr/bin/env python fixes the problem and is best practice (or so I'm told)

uncompyle2# ./scripts/uncompyle2 -h

Usage: uncompyle2 [OPTIONS]... [ FILE | DIR]...
...snip...
kernelsmith commented 9 years ago

Thanks!