From 5871c7950188249b3a5bbe10f01890ccd481838b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph=20Hopfm=C3=BCller?= Date: Fri, 15 Nov 2024 21:21:50 +0100 Subject: [PATCH] update README with cloning notes and adjust path in _path_fix.py for submodule import --- README.md | 7 +++++-- src/single-core-regen/_path_fix.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 703bd1b..7314731 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,13 @@ Full license text in LICENSE file # optical-regeneration -This repo has about 7.5GB of datasets in it. The download will take a while. +## Notes on cloning: + +- This repo has about 7.5GB of datasets in it. The download will take a while. +- `pypho` is added as a submodule -> `--recurse-submodules` ```bash -git clone https://git.suuppl.dev/seppl/optical-regeneration.git +git clone --recurse-submodules https://git.suuppl.dev/seppl/optical-regeneration.git ``` ## License diff --git a/src/single-core-regen/_path_fix.py b/src/single-core-regen/_path_fix.py index 74aadb1..b155f84 100644 --- a/src/single-core-regen/_path_fix.py +++ b/src/single-core-regen/_path_fix.py @@ -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"))