start signal gen
This commit is contained in:
9
src/single-core-regen/_path_fix.py
Normal file
9
src/single-core-regen/_path_fix.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# hack to add the parent directory to the path -> pypho doesn't have to be installed as package
|
||||
parent_dir = Path(__file__).parent
|
||||
while not (parent_dir / "pypho").exists() and parent_dir != Path("/"):
|
||||
parent_dir = parent_dir.parent
|
||||
print(f"Adding '{parent_dir}' to 'sys.path' to enable import of '{parent_dir / 'pypho'}'")
|
||||
sys.path.append(str(parent_dir))
|
||||
Reference in New Issue
Block a user