update README with cloning notes and adjust path in _path_fix.py for submodule import
This commit is contained in:
@@ -13,10 +13,13 @@ Full license text in LICENSE file
|
|||||||
|
|
||||||
# optical-regeneration
|
# 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
|
```bash
|
||||||
git clone https://git.suuppl.dev/seppl/optical-regeneration.git
|
git clone --recurse-submodules https://git.suuppl.dev/seppl/optical-regeneration.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ from pathlib import Path
|
|||||||
parent_dir = Path(__file__).parent
|
parent_dir = Path(__file__).parent
|
||||||
while not (parent_dir / "pypho" / "pypho").exists() and parent_dir != Path("/"):
|
while not (parent_dir / "pypho" / "pypho").exists() and parent_dir != Path("/"):
|
||||||
parent_dir = parent_dir.parent
|
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"))
|
sys.path.append(str(parent_dir / "pypho"))
|
||||||
|
|||||||
Reference in New Issue
Block a user