mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-12-28 09:58:56 +01:00
Merge pull request #32 from eli-schwartz/master
Linux: Allow using ~ when specifying a wineprefix.
This commit is contained in:
commit
b8606cd182
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue