update README with cloning notes and adjust path in _path_fix.py for submodule import

This commit is contained in:
Joseph Hopfmüller
2024-11-15 21:21:50 +01:00
parent f7217a93bb
commit 5871c79501
2 changed files with 6 additions and 3 deletions

View File

@@ -5,5 +5,5 @@ from pathlib import Path
parent_dir = Path(__file__).parent
while not (parent_dir / "pypho" / "pypho").exists() and parent_dir != Path("/"):
parent_dir = parent_dir.parent
print(f"Adding '{parent_dir / "pypho"}' to 'sys.path' to enable import of '{parent_dir / 'pypho'}'")
print(f"Adding '{parent_dir / "pypho"}' to 'sys.path' to enable import of '{parent_dir / 'pypho' / 'pypho'}'")
sys.path.append(str(parent_dir / "pypho"))