Last active
March 27, 2023 07:19
-
-
Save jet-c-21/6e40d1296efa7092b95d260f0e3f685a to your computer and use it in GitHub Desktop.
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
import sys | |
import pathlib | |
CURR_DIR = pathlib.Path().resolve() | |
PROJECT_DIR = CURR_DIR.parent | |
sys.path.append(str(PROJECT_DIR)) | |
print(f"[INFO] - append directory to path: {PROJECT_DIR}") |
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
import pathlib | |
import sys | |
# add project directory to path | |
curr_file_path = pathlib.Path(__file__).absolute() | |
CURR_DIR = curr_file_path.parent | |
PROJECT_DIR = CURR_DIR.parent | |
sys.path.append(str(PROJECT_DIR)) | |
print(f"[INFO] - append directory to path: {PROJECT_DIR}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment