Last active
April 18, 2020 06:45
-
-
Save workze/bcc3f5da29ac08bf8b8ede7f058dbf8d to your computer and use it in GitHub Desktop.
python sys path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python a.py | |
会把 a.py 所在路径加入 sys.path 的第一个。 | |
sys.argv = ['/path/to/a.py'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment