Skip to content

Commit

Permalink
fix: Corrige verificação de caminho para instalação do ViGEmBus
Browse files Browse the repository at this point in the history
  • Loading branch information
josejefferson committed Dec 28, 2024
1 parent c359b5e commit 89770b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def installVgamepad():
vigemSetupPath2 = os.path.normpath(
os.path.abspath(os.path.join(os.path.dirname(__file__), f"../ViGEmBusSetup_{arch}.msi"))
) # PyInstaller
vigemSetupPath = vigemSetupPath1 if os.path.isdir(vigemSetupPath1) else vigemSetupPath2
vigemSetupPath = vigemSetupPath1 if os.path.isfile(vigemSetupPath1) else vigemSetupPath2

exitCode = subprocess.call(["msiexec", "/i", vigemSetupPath])
if exitCode == 0:
Expand Down

0 comments on commit 89770b2

Please sign in to comment.