Update wineutils.py

Add 
```
WINEPATH=\"C:\\Python26;C:\\windows\\system32\"
```
before calling wine, as these are the default wine Python locations.
pull/750/head
dakeryas 5 years ago committed by GitHub
parent feae07c502
commit bc28d4b6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ def WineGetKeys(scriptpath, extension, wineprefix=""):
wineprefix = os.path.abspath(os.path.expanduser(os.path.expandvars(wineprefix)))
if wineprefix != "" and os.path.exists(wineprefix):
cmdline = u"WINEPREFIX=\"{2}\" wine python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath,wineprefix)
cmdline = u"WINEPREFIX=\"{2}\" WINEPATH=\"C:\\Python26;C:\\windows\\system32\" wine python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath,wineprefix)
else:
cmdline = u"wine python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath)
print u"{0} v{1}: Command line: '{2}'".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)

Loading…
Cancel
Save