Created
April 9, 2022 12:08
-
-
Save pointofpresence/e38d92151f7b1193ad9781f07de3ec39 to your computer and use it in GitHub Desktop.
Python set current working dir
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
import os | |
import sys | |
os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment