fix: move to game directory when creating backup

This commit is contained in:
RedDeadDepresso
2024-09-30 01:58:18 +01:00
parent 9eb703d12a
commit 344b0cdec0

View File

@@ -139,7 +139,7 @@ class FileManager:
command = f'"{path_to_7zip}" a -t7z "{archive_file}" {include_string} {exclude_string}' command = f'"{path_to_7zip}" a -t7z "{archive_file}" {include_string} {exclude_string}'
# Call the command # 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 # Print the output
while process.poll() is None: while process.poll() is None: