Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/rcutil.py @ 43711:02fe8dedab8c
defaults: rename default.d to defaultrc to make it a valid package name
"default.d" is not a valid Python package name, and it needs to be a
valid package name if we want to be able to load the files from here
as resources.
Differential Revision: https://phab.mercurial-scm.org/D7426
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Nov 2019 17:36:01 -0800 |
parents | 687b865b95ad |
children | 5be909dbe385 |
comparison
equal
deleted
inserted
replaced
43710:8273680059b2 | 43711:02fe8dedab8c |
---|---|
58 result.append((section, configname, env[envname], b'$%s' % envname)) | 58 result.append((section, configname, env[envname], b'$%s' % envname)) |
59 return result | 59 return result |
60 | 60 |
61 | 61 |
62 def defaultrcpath(): | 62 def defaultrcpath(): |
63 '''return rc paths in default.d''' | 63 '''return rc paths in defaultrc''' |
64 path = [] | 64 path = [] |
65 defaultpath = os.path.join(util.datapath, b'default.d') | 65 defaultpath = os.path.join(util.datapath, b'defaultrc') |
66 if os.path.isdir(defaultpath): | 66 if os.path.isdir(defaultpath): |
67 path = _expandrcpath(defaultpath) | 67 path = _expandrcpath(defaultpath) |
68 return path | 68 return path |
69 | 69 |
70 | 70 |