From 26c7297de64763dbbf01c7f6300598a1b4b4a120 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 6 Dec 2016 11:26:01 +0530 Subject: [PATCH] Handle envvars and ~ in session cwd directives --- kitty/child.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child.py b/kitty/child.py index 712617252..84b016ac3 100644 --- a/kitty/child.py +++ b/kitty/child.py @@ -18,7 +18,7 @@ class Child: def __init__(self, argv, cwd, opts): self.argv = argv - self.cwd = cwd + self.cwd = os.path.abspath(os.path.expandvars(os.path.expanduser(cwd or os.getcwd()))) self.opts = opts def fork(self):