Skip to content

Instantly share code, notes, and snippets.

@Exodus111
Created June 21, 2016 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Exodus111/4540dbd5821b61fa9d990a03f0c0ed00 to your computer and use it in GitHub Desktop.
Save Exodus111/4540dbd5821b61fa9d990a03f0c0ed00 to your computer and use it in GitHub Desktop.
import os
def set_dir(file_path):
here = os.path.dirname(file_path)
os.chdir(here)
if __name__ == "__main__":
set_dir(__file__)
@Exodus111
Copy link
Author

A quick fix for Atoms script not running from the correct folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment