Created
July 8, 2020 12:52
-
-
Save abkabhishek/26499a92ef643f0f98b6028c2c25e630 to your computer and use it in GitHub Desktop.
#python #useful #snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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