Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions protontricks
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import binascii
import glob
import os
import re
import shutil
import string
import struct
import subprocess
Expand Down Expand Up @@ -289,9 +290,11 @@ if __name__ == "__main__":

if os.environ.get('WINETRICKS') is None:
print("[INFO] WINETRICKS environment variable is not available. "
"Falling back to /usr/bin/winetricks")
os.environ["WINETRICKS"] = "/usr/bin/winetricks"
if not os.path.exists("/usr/bin/winetricks"):
"Searching from $PATH.")
winetricks_path = shutil.which("winetricks")
if winetricks_path:
os.environ["WINETRICKS"] = winetricks_path
else:
print("[ERROR!] Winetricks isn't installed, please install "
"winetricks in order to use this script!")
prereq_fail = True
Expand Down