From 9373fab4a8c9744afc84f344c23801569f14efdf Mon Sep 17 00:00:00 2001 From: Xodetaetl Date: Sun, 10 Aug 2014 21:54:45 +0200 Subject: [PATCH] Set default working_dir in wineexec only if exe is a path --- lutris/runners/wine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py index df99bc419..c9ad65d58 100644 --- a/lutris/runners/wine.py +++ b/lutris/runners/wine.py @@ -50,7 +50,8 @@ def wineexec(executable, args="", prefix=None, wine_path='wine', arch=None, executable = "\"%s\"" % executable if not working_dir: - working_dir = os.path.dirname(executable) + if '/' in executable: + working_dir = os.path.dirname(executable) command = "WINEARCH=%s %s %s %s %s" % ( arch, prefix, wine_path, executable, args