Skip to content

Instantly share code, notes, and snippets.

@abkabhishek
Created July 8, 2020 12:52
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 abkabhishek/26499a92ef643f0f98b6028c2c25e630 to your computer and use it in GitHub Desktop.
Save abkabhishek/26499a92ef643f0f98b6028c2c25e630 to your computer and use it in GitHub Desktop.
#python #useful #snippet
# Python path getter
PATH = lambda p: os.path.abspath(
os.path.join(os.path.dirname(__file__), p)
)
resultPath = PATH("../log")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment