Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Unified Diff: checkout.py

Issue 1471973004: Fix some path processing to work better on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: lint Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cit.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: checkout.py
diff --git a/checkout.py b/checkout.py
index 8d5cccecdc6ef1bfe1817aa3a54a2cebff1cf2ef..bed4737507250693f074cda16583649574eb5119 100644
--- a/checkout.py
+++ b/checkout.py
@@ -255,7 +255,8 @@ class SvnConfig(object):
if sys.platform == 'win32':
self.svn_config_dir = os.path.join(os.environ['APPDATA'], 'Subversion')
else:
- self.svn_config_dir = os.path.join(os.environ['HOME'], '.subversion')
+ self.svn_config_dir = os.path.expanduser(
+ os.path.join('~', '.subversion'))
svn_config_file = os.path.join(self.svn_config_dir, 'config')
parser = ConfigParser.SafeConfigParser()
if os.path.isfile(svn_config_file):
« no previous file with comments | « no previous file | cit.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698