penwings 0.3.0.dev1__tar.gz → 0.3.0.dev2__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.dev1/src/penwings.egg-info → penwings-0.3.0.dev2}/PKG-INFO +1 -1
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/paths/project_paths.py +3 -4
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2/src/penwings.egg-info}/PKG-INFO +1 -1
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/.gitignore +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/LICENSE +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/README.md +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/pyproject.toml +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/setup.cfg +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/exploration/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/io/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/io/cache.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/modeling/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/paths/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/utils/__init__.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/utils/_decorators.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings/utils/_typing.py +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings.egg-info/SOURCES.txt +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings.egg-info/dependency_links.txt +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings.egg-info/requires.txt +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/src/penwings.egg-info/top_level.txt +0 -0
- {penwings-0.3.0.dev1 → penwings-0.3.0.dev2}/uv.lock +0 -0
|
@@ -180,8 +180,7 @@ class ProjectPaths(PathBase, PathMixin):
|
|
|
180
180
|
• dictionary-style access to paths
|
|
181
181
|
|
|
182
182
|
Root detection searches the current working directory and its parents
|
|
183
|
-
for common project
|
|
184
|
-
``configs/``, ``README.md`` or ``pyproject.toml``.
|
|
183
|
+
for common project marker ``pyproject.toml``.
|
|
185
184
|
|
|
186
185
|
Parameters
|
|
187
186
|
----------
|
|
@@ -453,7 +452,7 @@ class ConfigPaths(PathBase, PathMixin):
|
|
|
453
452
|
|
|
454
453
|
def __init__(
|
|
455
454
|
self,
|
|
456
|
-
config: str | Path,
|
|
455
|
+
config: str | Path = None,
|
|
457
456
|
root: Optional[str | Path] = None,
|
|
458
457
|
create: bool = True,
|
|
459
458
|
):
|
|
@@ -466,7 +465,7 @@ class ConfigPaths(PathBase, PathMixin):
|
|
|
466
465
|
self._create_dirs()
|
|
467
466
|
|
|
468
467
|
def _load_config(self, config):
|
|
469
|
-
config_path = Path(config)
|
|
468
|
+
config_path = self.root / "config.json" if config is None else Path(config)
|
|
470
469
|
if not config_path.exists():
|
|
471
470
|
raise ValueError(f"Config file not found: {config_path}")
|
|
472
471
|
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
|