update2
This commit is contained in:
@@ -37,8 +37,11 @@ def resolve_reference_glob(base_dir: Path, ref_arg: str):
|
||||
data_glob = cfg.get("data_glob") or cfg.get("data_path") or ""
|
||||
if not data_glob:
|
||||
raise SystemExit("reference config has no data_glob/data_path")
|
||||
ref_path = (ref_path.parent / data_glob).resolve()
|
||||
return str(ref_path)
|
||||
combined = ref_path.parent / data_glob
|
||||
# On Windows, Path.resolve fails on glob patterns like *.csv.gz
|
||||
if "*" in str(combined) or "?" in str(combined):
|
||||
return str(combined)
|
||||
return str(combined.resolve())
|
||||
return str(ref_path)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user