Created
June 21, 2016 07:46
-
-
Save Exodus111/4540dbd5821b61fa9d990a03f0c0ed00 to your computer and use it in GitHub Desktop.
This file contains 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 | |
def set_dir(file_path): | |
here = os.path.dirname(file_path) | |
os.chdir(here) | |
if __name__ == "__main__": | |
set_dir(__file__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A quick fix for Atoms script not running from the correct folder.