Show More
@@ -3238,7 +3238,11 b' def dispatch(args):' | |||||
3238 | for x in u.extensions(): |
|
3238 | for x in u.extensions(): | |
3239 | try: |
|
3239 | try: | |
3240 | if x[1]: |
|
3240 | if x[1]: | |
3241 | mod = imp.load_source(x[0], x[1]) |
|
3241 | # the module will be loaded in sys.modules | |
|
3242 | # choose an unique name so that it doesn't | |||
|
3243 | # conflicts with other modules | |||
|
3244 | module_name = "hgext_%s" % x[0].replace('.', '_') | |||
|
3245 | mod = imp.load_source(module_name, x[1]) | |||
3242 | else: |
|
3246 | else: | |
3243 | def importh(name): |
|
3247 | def importh(name): | |
3244 | mod = __import__(name) |
|
3248 | mod = __import__(name) |
General Comments 0
You need to be logged in to leave comments.
Login now