penwings 0.3.0.dev2__tar.gz → 0.3.0.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {penwings-0.3.0.dev2/src/penwings.egg-info → penwings-0.3.0.dev3}/PKG-INFO +1 -1
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/paths/project_paths.py +3 -2
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3/src/penwings.egg-info}/PKG-INFO +1 -1
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/.gitignore +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/LICENSE +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/README.md +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/pyproject.toml +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/setup.cfg +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/exploration/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/io/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/io/cache.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/modeling/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/paths/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/utils/__init__.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/utils/_decorators.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings/utils/_typing.py +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings.egg-info/SOURCES.txt +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings.egg-info/dependency_links.txt +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings.egg-info/requires.txt +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/src/penwings.egg-info/top_level.txt +0 -0
- {penwings-0.3.0.dev2 → penwings-0.3.0.dev3}/uv.lock +0 -0
|
@@ -401,7 +401,8 @@ class ConfigPaths(PathBase, PathMixin):
|
|
|
401
401
|
|
|
402
402
|
Parameters
|
|
403
403
|
----------
|
|
404
|
-
config : str or pathlib.Path
|
|
404
|
+
config : str or pathlib.Path, optional
|
|
405
|
+
Default location is in ``config.json`` next to the pyproject.toml file
|
|
405
406
|
Path to the JSON configuration file. The JSON must contain
|
|
406
407
|
a top-level `"paths"` key mapping attribute names to
|
|
407
408
|
relative paths. Example:
|
|
@@ -465,7 +466,7 @@ class ConfigPaths(PathBase, PathMixin):
|
|
|
465
466
|
self._create_dirs()
|
|
466
467
|
|
|
467
468
|
def _load_config(self, config):
|
|
468
|
-
config_path = self.
|
|
469
|
+
config_path = self._detect_root() / "config.json" if config is None else Path(config)
|
|
469
470
|
if not config_path.exists():
|
|
470
471
|
raise ValueError(f"Config file not found: {config_path}")
|
|
471
472
|
if not config_path.suffix == ".json":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|