Skip to content

Instantly share code, notes, and snippets.

@puzzledqs
Last active August 29, 2015 14:07
Show Gist options
  • Save puzzledqs/f0bd3fd239a21a35cbe7 to your computer and use it in GitHub Desktop.
Save puzzledqs/f0bd3fd239a21a35cbe7 to your computer and use it in GitHub Desktop.
Get the path of a python script
import os
os.path.abspath(__file__)
os.path.realpath(__file__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment