Created
November 19, 2021 20:31
-
-
Save MareoRaft/dbafd54926a8e936ed14748bf522a1dd to your computer and use it in GitHub Desktop.
The safe/recommended way to get a file / dir / repo path in python
This file contains hidden or 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
import os | |
REPO_PATH = os.path.dirname(os.path.abspath(__file__)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment