Created
April 3, 2019 22:50
-
-
Save planetceres/d20ade5f46531786320b0690586950aa to your computer and use it in GitHub Desktop.
Append sibling directory 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 | |
dir_name = "directory_name" | |
cur_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
sys.path.append(os.path.join(cur_path, dir_name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment