From 65767693df16c5d14bbc5bb0123fbaf1ebd99349 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 18 Aug 2009 12:59:06 +0100 Subject: [PATCH] It always helps to return the thing you're called for --- terminatorlib/cwd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminatorlib/cwd.py b/terminatorlib/cwd.py index b4c87a9e..703a7732 100755 --- a/terminatorlib/cwd.py +++ b/terminatorlib/cwd.py @@ -13,6 +13,8 @@ def get_default_cwd(): cwd = os.getcwd() if not os.path.exists(cwd) or not os.path.isdir(cwd): cwd = pwd.getpwuid(os.getuid())[5] + + return(cwd) def get_pid_cwd(): """Determine an appropriate cwd function for the OS we are running on"""