From 5134d5d9fffe09feda1f1c59e07993b1c60375c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 30 Nov 2015 20:42:38 +0100 Subject: Support ~ in directory setting --- mcwrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcwrapper') 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) -- cgit v1.2.3