##// END OF EJS Templates
largefiles: do not use platform.system()...
Jun Wu -
r34642:bb6544b1 default
parent child Browse files
Show More
@@ -12,7 +12,6 b' from __future__ import absolute_import'
12 import copy
12 import copy
13 import hashlib
13 import hashlib
14 import os
14 import os
15 import platform
16 import stat
15 import stat
17
16
18 from mercurial.i18n import _
17 from mercurial.i18n import _
@@ -80,7 +79,7 b' def _usercachedir(ui):'
80 encoding.environ.get('APPDATA'))
79 encoding.environ.get('APPDATA'))
81 if appdata:
80 if appdata:
82 return os.path.join(appdata, longname)
81 return os.path.join(appdata, longname)
83 elif platform.system() == 'Darwin':
82 elif pycompat.sysplatform == 'darwin':
84 home = encoding.environ.get('HOME')
83 home = encoding.environ.get('HOME')
85 if home:
84 if home:
86 return os.path.join(home, 'Library', 'Caches', longname)
85 return os.path.join(home, 'Library', 'Caches', longname)
General Comments 0
You need to be logged in to leave comments. Login now