Last active
August 29, 2015 13:57
-
-
Save zenubis/9824442 to your computer and use it in GitHub Desktop.
python code to change to the directory where the script resides
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
| #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