Skip to content

Instantly share code, notes, and snippets.

@h2rd
Created November 26, 2012 11:03
Show Gist options
  • Select an option

  • Save h2rd/4147665 to your computer and use it in GitHub Desktop.

Select an option

Save h2rd/4147665 to your computer and use it in GitHub Desktop.
Get current directory
from os import path
print path.dirname(path.realpath(__file__))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment