From 4cc95df69cd864f8584de64b1c1f8165125b24f8 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:19:57 -0800 Subject: [PATCH] fixed controller config path --- NSLGameScanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 163af71..618d2fb 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -923,7 +923,7 @@ if new_shortcuts_added or shortcuts_updated: file.write(vdf.binary_dumps(shortcuts)) # Load the configset_controller_neptune.vdf file - with open(controller_config_path, 'r') as f: + with open(f"{controller_config_path}", 'r') as f: config = vdf.load(f) # Add new entries for the games @@ -1006,7 +1006,7 @@ if new_shortcuts_added or shortcuts_updated: } # Save the updated config - with open(controller_config_path, 'w') as f: + with open(f"{controller_config_path}", 'w') as f: vdf.dump(config, f) # Print the created shortcuts