From f669982a2b5ab9db2abf07398a526a8b6be062e7 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 29 May 2009 19:52:28 +0000 Subject: [PATCH] Use os.path.join() instead of hardcoding / Review URL: http://codereview.chromium.org/115926 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17206 0039d316-1c4b-4281-b951-d872f2087c98 --- upload.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/upload.py b/upload.py index bd29b2f7d..971c51b0f 100755 --- a/upload.py +++ b/upload.py @@ -78,7 +78,8 @@ def GetEmail(): for next time we prompt. """ - last_email_file_name = os.path.expanduser("~/.last_codereview_email_address") + last_email_file_name = os.path.expanduser( + os.path.join("~", ".last_codereview_email_address")) last_email = "" prompt = "Email: " if os.path.exists(last_email_file_name): @@ -373,7 +374,8 @@ class HttpRpcServer(AbstractRpcServer): opener.add_handler(urllib2.HTTPSHandler()) opener.add_handler(urllib2.HTTPErrorProcessor()) if self.save_cookies: - self.cookie_file = os.path.expanduser("~/.codereview_upload_cookies") + self.cookie_file = os.path.expanduser( + os.path.join("~", ".codereview_upload_cookies")) self.cookie_jar = cookielib.MozillaCookieJar(self.cookie_file) if os.path.exists(self.cookie_file): try: