Skip to content

Instantly share code, notes, and snippets.

@airtonix
Created June 11, 2011 05:59
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 airtonix/1020310 to your computer and use it in GitHub Desktop.
Save airtonix/1020310 to your computer and use it in GitHub Desktop.
agnostic precusror for applications requiring absolute pathsrequiring
import os
HEREPATH = os.path.realpath(
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