aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-11-30 20:42:38 +0100
committerKarel Kočí <cynerd@email.cz>2015-11-30 20:42:38 +0100
commit5134d5d9fffe09feda1f1c59e07993b1c60375c6 (patch)
tree5c10d08cb44b581bdee7b568c633d499024a704d
parente69c2dcbbfa72d1b9ab10d2f89b4dce5eb0d3e7f (diff)
downloadmcserver-wrapper-5134d5d9fffe09feda1f1c59e07993b1c60375c6.tar.gz
mcserver-wrapper-5134d5d9fffe09feda1f1c59e07993b1c60375c6.tar.bz2
mcserver-wrapper-5134d5d9fffe09feda1f1c59e07993b1c60375c6.zip
Support ~ in directory setting
-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)