From a37b0de3223ee9a770d8aef23c5f05954064edde Mon Sep 17 00:00:00 2001 From: Jonathan Patrick Davies Date: Tue, 12 Aug 2008 18:43:21 +0100 Subject: [PATCH] * common.py: Use os.path.expanduser() instead of os.environ. --- common.py | 4 ++-- debian/changelog | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common.py b/common.py index 54b4182..2cd3aa5 100644 --- a/common.py +++ b/common.py @@ -68,7 +68,7 @@ def prepareLaunchpadCookie(): ftstr = ["FALSE", "TRUE"] # This shall be where our new cookie file lives - at ~/.lpcookie.txt - newLPCookieLocation = "%s/.lpcookie.txt" % os.environ.get('HOME') + newLPCookieLocation = os.path.expanduser("~/lpcookie.txt") # Open file for writing. newLPCookie = open(newLPCookieLocation, 'w') @@ -95,7 +95,7 @@ def prepareLaunchpadCookie(): # only by owner. os.chmod(newLPCookieLocation, 0600) - launchpad_cookiefile = "%s/.lpcookie.txt" % os.environ.get('HOME') + launchpad_cookiefile = newLPCookieLocation # Return the Launchpad cookie. return launchpad_cookiefile diff --git a/debian/changelog b/debian/changelog index fb49496..0d58ec2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ ubuntu-dev-tools (0.39ubuntu1) intrepid; urgency=low - * Changes go here. + [ Jonathan Patrick Davies ] + * common.py: Use os.path.expanduser() instead of os.environ. -- Jonathan Patrick Davies Tue, 12 Aug 2008 18:32:05 +0100