From 344b0cdec087c4f41f1d7a06feb45e5a99fa7b1a Mon Sep 17 00:00:00 2001 From: RedDeadDepresso <94017243+RedDeadDepresso@users.noreply.github.com> Date: Mon, 30 Sep 2024 01:58:18 +0100 Subject: [PATCH] fix: move to game directory when creating backup --- util/file_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/file_manager.py b/util/file_manager.py index bb8a508..d544853 100644 --- a/util/file_manager.py +++ b/util/file_manager.py @@ -139,7 +139,7 @@ class FileManager: command = f'"{path_to_7zip}" a -t7z "{archive_file}" {include_string} {exclude_string}' # Call the command - process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, cwd=self.config.game_path['base']) # Print the output while process.poll() is None: