update2
This commit is contained in:
@@ -39,7 +39,13 @@ def main():
|
||||
cfg = json.load(f)
|
||||
|
||||
# Resolve config path without duplicating base_dir on Windows when user passes example/config.json
|
||||
if config_path.exists():
|
||||
if config_path.is_absolute():
|
||||
config_path = resolve_path(config_path.parent, config_path)
|
||||
else:
|
||||
candidate = base_dir / config_path
|
||||
if candidate.exists():
|
||||
config_path = resolve_path(candidate.parent, candidate)
|
||||
elif config_path.exists():
|
||||
config_path = resolve_path(config_path.parent, config_path)
|
||||
else:
|
||||
config_path = resolve_path(base_dir, config_path)
|
||||
|
||||
Reference in New Issue
Block a user