From 17034aed2635b2fae48630c56f01b620300dee57 Mon Sep 17 00:00:00 2001 From: DJSchaffner Date: Thu, 18 Apr 2024 20:27:39 +0200 Subject: [PATCH] modified how depotdownloader is being called --- src/logic.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/logic.py b/src/logic.py index 09cfe5b..74dbbfe 100644 --- a/src/logic.py +++ b/src/logic.py @@ -271,12 +271,10 @@ def _depot_downloader(self, options: list, password: str): Raises: ConnectionError: If there was an error during authentication """ - depot_downloader_path = f"\"{str(utils.resource_path('DepotDownloader/DepotDownloader.dll').absolute())}\"" - - args = ["dotnet", depot_downloader_path] + options + args = ["dotnet", str(utils.resource_path('DepotDownloader/DepotDownloader.dll').absolute())] + options # Spawn process and store in queue - p = pexpect.popen_spawn.PopenSpawn(" ".join(args), encoding="utf-8") + p = pexpect.popen_spawn.PopenSpawn(args, encoding="utf-8") self.process_queue.put(p) p.logfile_read = sys.stdout @@ -357,7 +355,7 @@ def _download_manifest(self, username: str, password: str, depot_id: int, manife "-manifest", str(manifest_id), "-username", username, "-remember-password", - "-dir", f"\"{str(self.manifest_dir)}\"", + "-dir", str(self.manifest_dir), "-manifest-only"] return self._depot_downloader(args, password)