Skip to content

Instantly share code, notes, and snippets.

@kujyp
Last active November 16, 2018 06:46
Show Gist options
  • Save kujyp/70fc436a55292d78e95d9c7b687f2b25 to your computer and use it in GitHub Desktop.
Save kujyp/70fc436a55292d78e95d9c7b687f2b25 to your computer and use it in GitHub Desktop.
python shebang line test
#!/usr/bin/python
import sys
print("sys.version==[{}]".format(sys.version))
#!/home1/irteam/.pyenv/versions/3.6.1/bin/python3
import sys
print("sys.version==[{}]".format(sys.version))
@kujyp
Copy link
Author

kujyp commented Nov 16, 2018

explicit_executable_app.py 실행결과

$ ./explicit_executable_app.py
sys.version==[3.6.1 (default, Jun 16 2017, 18:58:38)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]]
$ python explicit_executable_app.py
sys.version==[2.7.13 (default, May  4 2017, 17:21:42)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment