Linux: Allow using ~ when specifying a wineprefix.

This commit is contained in:
Eli Schwartz 2015-03-22 01:36:15 -05:00
parent 33d8a63f61
commit f2190a6755
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def WineGetKeys(scriptpath, extension, wineprefix=""):
if not os.path.exists(outdirpath):
os.makedirs(outdirpath)
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)
else: