diff --git a/slapos/entry.py b/slapos/entry.py
index 4cf08e290b1b9368f23f6053742d03d57807629d..92328309e0d1b3ddf15fbc2a60e27966a8372657 100644
--- a/slapos/entry.py
+++ b/slapos/entry.py
@@ -101,7 +101,7 @@ def call(fun, config=False, option=None):
     checkOption(element)
   if config:
     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()
   sys.exit(0)