1
1
import glob
2
2
import os
3
- import platform
4
3
import shutil
5
4
import subprocess
6
5
import time
@@ -434,7 +433,7 @@ def install_or_upgrade_vc_redist(self) -> None:
434
433
435
434
print (f"Installing vc_redist for arch: { arch } " )
436
435
437
- files_to_run = [f "vc_redist.x64.exe" ]
436
+ files_to_run = ["vc_redist.x64.exe" ]
438
437
if arch == "x86" :
439
438
files_to_run .insert (0 , "vc_redist.x86.exe" )
440
439
for file in files_to_run :
@@ -444,8 +443,8 @@ def install_or_upgrade_vc_redist(self) -> None:
444
443
VAR_DIR , "logs" , "deploy" , f"vc_redist_log{ time .strftime ('%Y%m%d%H%M%S' )} .txt"
445
444
)
446
445
447
- # AdminRunner doesn't seem to work here, saying it can't find a handle, so just run as a
448
- # normal command as the process itself prompts for admin.
446
+ # AdminRunner doesn't seem to work here, saying it can't find a handle, so just
447
+ # run as a normal command as the process itself prompts for admin.
449
448
RunProcess (
450
449
working_dir = str (exe_file .parent ),
451
450
executable_file = exe_file .name ,
@@ -460,8 +459,8 @@ def install_or_upgrade_vc_redist(self) -> None:
460
459
expected_return_codes = [0 ],
461
460
).run ()
462
461
463
- # vc_redist helpfully finishes with errorlevel 0 before actually copying the files over.
464
- # therefore we'll sleep for 5 seconds here
462
+ # vc_redist helpfully finishes with errorlevel 0 before actually
463
+ # copying the files over, therefore we'll sleep for 5 seconds here
465
464
print ("waiting for install to finish" )
466
465
sleep (5 )
467
466
0 commit comments