Skip to content

Instantly share code, notes, and snippets.

@bryder
Created September 7, 2015 21:32
Show Gist options
  • Select an option

  • Save bryder/f312e84ecfca8b36be91 to your computer and use it in GitHub Desktop.

Select an option

Save bryder/f312e84ecfca8b36be91 to your computer and use it in GitHub Desktop.
get fully qualified forms of name of the currently running python script
script_path = os.path.realpath(__file__)
script_path_no_ext = os.path.splitext(os.path.realpath(__file__))[0]
script_dir = os.path.dirname(script_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment