start signal gen

This commit is contained in:
Joseph Hopfmüller
2024-11-13 23:46:17 +01:00
parent 15d62f189d
commit e35bdf6a1a
4 changed files with 422 additions and 0 deletions

View 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))