Commit f669982a authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent 77c4f0f1
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment