Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oureveryday committed Jul 30, 2024
1 parent 0b9de5c commit cfee20d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WallpaperDownloader_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run_command(pubfileid):
if not os.path.isdir(target_directory):
printlog("Invaild save location: Selected directory does not contain \projects\myprojects\n")
return
dir_option = f"-dir {save_location}\\projects\\myprojects\\{pubfileid}" # Ensure the directory path is correctly formatted for Windows
dir_option = f"-dir \"{save_location}\\projects\\myprojects\\{pubfileid}\"" # Ensure the directory path is correctly formatted for Windows
command = f"DepotdownloaderMod\\DepotDownloadermod.exe -app 431960 -pubfile {pubfileid} -verify-all -username {username.get()} -password {passwords[username.get()]} {dir_option}"
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True,creationflags=subprocess.CREATE_NO_WINDOW)
for line in process.stdout:
Expand Down
2 changes: 1 addition & 1 deletion WallpaperDownloader_zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def run_command(pubfileid):
if not os.path.isdir(target_directory):
printlog("无效的保存位置:选定目录不包含 \projects\myprojects\n")
return
dir_option = f"-dir {save_location}\\projects\\myprojects\\{pubfileid}"
dir_option = f"-dir \"{save_location}\\projects\\myprojects\\{pubfileid}\""
command = f"DepotdownloaderMod\\DepotDownloadermod.exe -app 431960 -pubfile {pubfileid} -verify-all -username {username.get()} -password {passwords[username.get()]} {dir_option}"
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True,creationflags=subprocess.CREATE_NO_WINDOW)
for line in process.stdout:
Expand Down

0 comments on commit cfee20d

Please sign in to comment.