From f62bc75edaad8bdc7a814c561e18aca7ae1c5de3 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sun, 18 Feb 2024 06:13:39 -0800 Subject: [PATCH] added log for the json info --- NSLGameScanner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 894533f..78c50cd 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -1040,4 +1040,10 @@ if new_shortcuts_added or shortcuts_updated: print("All finished!") +# Create the path to the output file +output_file_path = f"{logged_in_home}/.config/systemd/user/NSLGameScanner_output.log" +# Open the output file in append mode +with open(output_file_path, 'a') as output_file: + # Print the shortcut information to the output file + print(message, file=output_file, flush=True)