Skip to content

Instantly share code, notes, and snippets.

@bulv1ne
Last active December 18, 2015 08:39
Show Gist options
  • Save bulv1ne/5755438 to your computer and use it in GitHub Desktop.
Save bulv1ne/5755438 to your computer and use it in GitHub Desktop.
Get the directory of the file
import os
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment