equal
deleted
inserted
replaced
210 @classmethod |
210 @classmethod |
211 def load(cls): |
211 def load(cls): |
212 """Create a ui and load global and user configs""" |
212 """Create a ui and load global and user configs""" |
213 u = cls() |
213 u = cls() |
214 # we always trust global config files |
214 # we always trust global config files |
215 for f in rcutil.rccomponents(): |
215 for t, f in rcutil.rccomponents(): |
216 u.readconfig(f, trust=True) |
216 if t == 'path': |
|
217 u.readconfig(f, trust=True) |
|
218 else: |
|
219 raise error.ProgrammingError('unknown rctype: %s' % t) |
217 return u |
220 return u |
218 |
221 |
219 def copy(self): |
222 def copy(self): |
220 return self.__class__(self) |
223 return self.__class__(self) |
221 |
224 |