Skip to content

Instantly share code, notes, and snippets.

@workze
Last active April 18, 2020 06:45
Show Gist options
  • Save workze/bcc3f5da29ac08bf8b8ede7f058dbf8d to your computer and use it in GitHub Desktop.
Save workze/bcc3f5da29ac08bf8b8ede7f058dbf8d to your computer and use it in GitHub Desktop.
python sys path
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