fix: core config apply not working
This commit is contained in:
@ -217,7 +217,7 @@ class CoreConfigManager:
|
||||
# On Windows, try to execute directly (batch files, etc.)
|
||||
cmd = [str(hook_path), str(config_file_path)]
|
||||
|
||||
print(f"🔧 Executing hook: {hook_path.name}")
|
||||
print(f"🔧 Executing hook: {hook_path}")
|
||||
env = os.environ.copy()
|
||||
env['PYTHONIOENCODING'] = 'utf-8'
|
||||
result = subprocess.run(
|
||||
@ -227,8 +227,9 @@ class CoreConfigManager:
|
||||
text=True,
|
||||
timeout=30,
|
||||
encoding="utf-8",
|
||||
shell=True,
|
||||
# shell=True,
|
||||
env=env,
|
||||
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
||||
)
|
||||
|
||||
if result.returncode == 0:
|
||||
@ -369,4 +370,4 @@ def deep_merge(dict1, dict2):
|
||||
dict1[k].extend(v) # Example: extend lists. Adjust logic for other list merging needs.
|
||||
else:
|
||||
dict1[k] = v
|
||||
return dict1
|
||||
return dict1
|
||||
|
||||
Reference in New Issue
Block a user