Skip to content

Commit

Permalink
modified how depotdownloader is being called
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner committed Apr 18, 2024
1 parent d38d065 commit 17034ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 17034ae

Please sign in to comment.