Skip to content

Commit

Permalink
make manual download routine look for spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbbnnyCode committed Apr 15, 2024
1 parent f6aa4ea commit 479bdc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,14 @@ def main(zipfile,
print("Finding files in %s..." % user_downloads_dir)

for url, outfile in actual_manual_dls:
fname = os.path.basename(outfile).replace(' ', '+')
fname = os.path.basename(outfile)
fname_plus = fname.replace(' ', '+')
dl_path = user_downloads_dir + '/' + fname
if os.path.exists(dl_path):
dl_path_plus = user_downloads_dir + '/' + fname_plus
if os.path.exists(dl_path_plus):
print(dl_path_plus)
shutil.move(dl_path_plus, outfile)
elif os.path.exists(dl_path):
print(dl_path)
shutil.move(dl_path, outfile)
else:
Expand Down

0 comments on commit 479bdc0

Please sign in to comment.