From c46c25d60756c3f0b01f7892f52d412769a8af2b Mon Sep 17 00:00:00 2001 From: MingzheYang Date: Tue, 27 Jan 2026 18:22:25 +0800 Subject: [PATCH] update2 --- example/diagnose_ks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/example/diagnose_ks.py b/example/diagnose_ks.py index 60aaae1..a94a71f 100644 --- a/example/diagnose_ks.py +++ b/example/diagnose_ks.py @@ -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)