Skip to content

Instantly share code, notes, and snippets.

@Serpens
Last active November 16, 2015 12:40
Show Gist options
  • Save Serpens/0f26fbdd3b77b25f09ad to your computer and use it in GitHub Desktop.
Save Serpens/0f26fbdd3b77b25f09ad to your computer and use it in GitHub Desktop.
Python script directory
SCRIPT_DIRNAME = os.path.dirname(__file__)
PARENT_DIRNAME = os.path.abspath(os.path.join(DIRNAME, os.path.pardir))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment