##// END OF EJS Templates
extensions: fix lookup of hgext.foo modules
Matt Mackall -
r4560:3daed368 default
parent child Browse files
Show More
@@ -16,8 +16,8 b' def find(name):'
16 16 return _extensions[name]
17 17 except KeyError:
18 18 for k, v in _extensions.iteritems():
19 if k.endswith('.' + name) or k.endswith('/' + name) or v == name:
20 return sys.modules[v]
19 if k.endswith('.' + name) or k.endswith('/' + name):
20 return v
21 21 raise KeyError(name)
22 22
23 23 def load(ui, name, path):
General Comments 0
You need to be logged in to leave comments. Login now