Expand user home dir

parent 75056787
...@@ -101,7 +101,7 @@ def call(fun, config=False, option=None): ...@@ -101,7 +101,7 @@ def call(fun, config=False, option=None):
checkOption(element) checkOption(element)
if config: if config:
if not checkSlaposCfg(): if not checkSlaposCfg():
sys.argv = [sys.argv[0]] + [config] + sys.argv[1:] sys.argv = [sys.argv[0]] + [os.path.expanduser(config)] + sys.argv[1:]
fun() fun()
sys.exit(0) sys.exit(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment