aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmcwrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcwrapper b/mcwrapper
index 4c897d3..57768c7 100755
--- a/mcwrapper
+++ b/mcwrapper
@@ -176,7 +176,7 @@ def mcexec():
if conf.verbose_level >= 1:
print("Folder: " + conf.directory)
print("Start command: " + conf.command)
- os.chdir(conf.directory)
+ os.chdir(os.path.expanduser(conf.directory))
prc = subprocess.Popen(conf.command, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
inputThread = __InputThread__(prc.stdin)