equal
deleted
inserted
replaced
12 from . import ( |
12 from . import ( |
13 encoding, |
13 encoding, |
14 pycompat, |
14 pycompat, |
15 util, |
15 util, |
16 ) |
16 ) |
|
17 |
|
18 from .utils import resourceutil |
17 |
19 |
18 if pycompat.iswindows: |
20 if pycompat.iswindows: |
19 from . import scmwindows as scmplatform |
21 from . import scmwindows as scmplatform |
20 else: |
22 else: |
21 from . import scmposix as scmplatform |
23 from . import scmposix as scmplatform |
60 |
62 |
61 |
63 |
62 def defaultrcpath(): |
64 def defaultrcpath(): |
63 '''return rc paths in defaultrc''' |
65 '''return rc paths in defaultrc''' |
64 path = [] |
66 path = [] |
65 defaultpath = os.path.join(util.datapath, b'defaultrc') |
67 defaultpath = os.path.join(resourceutil.datapath, b'defaultrc') |
66 if os.path.isdir(defaultpath): |
68 if os.path.isdir(defaultpath): |
67 path = _expandrcpath(defaultpath) |
69 path = _expandrcpath(defaultpath) |
68 return path |
70 return path |
69 |
71 |
70 |
72 |