mercurial/rcutil.py
changeset 43918 86fe85364811
parent 43674 5be909dbe385
child 44031 1864efbe90d9
equal deleted inserted replaced
43917:40fd1ef4e4c1 43918:86fe85364811
    61     return result
    61     return result
    62 
    62 
    63 
    63 
    64 def defaultrcpath():
    64 def defaultrcpath():
    65     '''return rc paths in defaultrc'''
    65     '''return rc paths in defaultrc'''
    66     path = []
       
    67     defaultpath = os.path.join(resourceutil.datapath, b'defaultrc')
    66     defaultpath = os.path.join(resourceutil.datapath, b'defaultrc')
    68     if os.path.isdir(defaultpath):
    67     return _expandrcpath(defaultpath)
    69         path = _expandrcpath(defaultpath)
       
    70     return path
       
    71 
    68 
    72 
    69 
    73 def rccomponents():
    70 def rccomponents():
    74     '''return an ordered [(type, obj)] about where to load configs.
    71     '''return an ordered [(type, obj)] about where to load configs.
    75 
    72