mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-09-12 15:48:31 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae6534b603 |
+2
-10
@@ -816,16 +816,8 @@ def _load_rigs_file(source_dir: Path, rel: str) -> dict | None:
|
|||||||
realization selection and the `intent.gm` fallback belong to whatever
|
realization selection and the `intent.gm` fallback belong to whatever
|
||||||
voices the part.
|
voices the part.
|
||||||
"""
|
"""
|
||||||
try:
|
r_path = _resolve_pack_path(source_dir, rel, "rigs")
|
||||||
r_path = (source_dir / rel).resolve()
|
if r_path is None or not r_path.exists():
|
||||||
r_path.relative_to(source_dir.resolve())
|
|
||||||
except ValueError:
|
|
||||||
log.warning("sloppak: rigs path %r escapes source_dir — skipped", rel)
|
|
||||||
return None
|
|
||||||
except OSError as e:
|
|
||||||
log.warning("sloppak: rigs path resolution failed (%s) — skipped", e)
|
|
||||||
return None
|
|
||||||
if not r_path.exists():
|
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
raw = load_json(r_path)
|
raw = load_json(r_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user