From 0f8439a2cfa89a12a4eeb147f213552f687dbe5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 30 Nov 2015 20:47:13 +0100 Subject: Fix config files loading Configuration wasn't loaded from some location, because it wasn't expanded from posix '~'. --- mcwrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcwrapper b/mcwrapper index 57768c7..0a936fa 100755 --- a/mcwrapper +++ b/mcwrapper @@ -32,8 +32,8 @@ try: except KeyError: # Find configuration in predefined paths for cf in __all_config_files__: - if os.path.isfile(cf): - __config_file__ = cf + if os.path.isfile(os.path.expanduser(cf)): + __config_file__ = os.path.expanduser(cf) break if __config_file__ == None: # If no configuration find. Set empty config __set_empty_config__() -- cgit v1.2.3