add private variable and copy when return by readinfo
This commit is contained in:
@@ -47,10 +47,10 @@ def load_config(config_name_or_path):
|
||||
available = [f.stem for f in CONFIG_DIR.glob("*.json")]
|
||||
available_str = ", ".join(available) if available else "none"
|
||||
raise FileNotFoundError(
|
||||
f"Config file not found: {config_name_or_path}\n"
|
||||
f"Tried as file path: {config_path} (not found)\n"
|
||||
f"Tried as package config: {package_config_path} (not found)\n"
|
||||
f"Available package configs: {available_str}"
|
||||
f"Input config file not found with name or path: {config_name_or_path}\n"
|
||||
f" Tried as file path: {config_path} (not found)\n"
|
||||
f" Tried as package config: {package_config_path} (not found)\n"
|
||||
f" Available package configs: {available_str}"
|
||||
)
|
||||
|
||||
with open(package_config_path, 'r', encoding='utf-8') as f:
|
||||
|
||||
Reference in New Issue
Block a user