Skip to content

Instantly share code, notes, and snippets.

@ttamg
Last active March 9, 2021 13:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Getting the current module's PATH for use when doing file imports
import os
CWD = os.path.dirname(os.path.abspath(__file__))
#CWD then has the absolute path to this current file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment