Skip to content

Instantly share code, notes, and snippets.

@zenubis
Last active August 29, 2015 13:57
Show Gist options
  • Save zenubis/9824442 to your computer and use it in GitHub Desktop.
Save zenubis/9824442 to your computer and use it in GitHub Desktop.
python code to change to the directory where the script resides
#change to the directory where the script resides
os.chdir(os.path.dirname(os.path.abspath(__file__)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment