From 961bc25d6e2770270824b574384f9381c372dd31 Mon Sep 17 00:00:00 2001 From: Emma <31828821+Gemmstone@users.noreply.github.com> Date: Sun, 7 Apr 2024 03:03:00 -0500 Subject: [PATCH] Corrected a problem that was reseting assets settings to "factory defaults" --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 40395f14..8d65d101 100644 --- a/main.py +++ b/main.py @@ -69,6 +69,7 @@ def is_path(string): def update_nested_dict(dest_data, source_data): for key, value in source_data.items(): + pass if isinstance(value, dict): if is_path(os.path.normpath(key)): if os.path.normpath(key) not in dest_data: @@ -106,10 +107,11 @@ def update_json_file(source_path, dest_path): with open(dest_path, 'w', encoding='utf-8') as dest_file: json.dump(source_data, dest_file, indent=4, ensure_ascii=False) else: - dest_data = update_nested_dict(dest_data, source_data) + pass + # dest_data = update_nested_dict(dest_data, source_data) - with open(dest_path, 'w') as dest_file: - json.dump(dest_data, dest_file, indent=4, ensure_ascii=False) + # with open(dest_path, 'w') as dest_file: + # json.dump(dest_data, dest_file, indent=4, ensure_ascii=False) else: shutil.copyfile(source_path, dest_path)