From 484b403cadcc9c021f7fd0e9e0b4e6464ee53426 Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Wed, 16 Apr 2008 21:51:14 +0100 Subject: [PATCH] Use os.expanduser and os.path.join instead of getuid, getpwuid and + --- terminatorconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorconfig.py b/terminatorconfig.py index 8f8632de..e056c952 100755 --- a/terminatorconfig.py +++ b/terminatorconfig.py @@ -129,7 +129,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore): # that can be re-used when rc changes. def __init__ (self): self.type = "RCFile" - self.rcfilename = pwd.getpwuid (os.getuid ())[5] + "/.terminatorrc" + self.rcfilename = os.path.join(os.path.expanduser("~"), ".terminatorrc") if os.path.exists (self.rcfilename): rcfile = open (self.rcfilename) rc = rcfile.readlines ()