Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Created April 9, 2022 12:08
Show Gist options
  • Save pointofpresence/e38d92151f7b1193ad9781f07de3ec39 to your computer and use it in GitHub Desktop.
Save pointofpresence/e38d92151f7b1193ad9781f07de3ec39 to your computer and use it in GitHub Desktop.
Python set current working dir
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