Spaces:
Running on Zero
Running on Zero
File size: 328 Bytes
6a0b176 | 1 2 3 4 5 6 7 | from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[1] # project root directory two levels above this file
if str(ROOT) not in sys.path: # making sure the project root is already in Python's module search path
sys.path.insert(0, str(ROOT)) # adding the project root so local modules can be imported
|