Import modules internally as 'bitbot_%s' to avoid name collisions (e.g.
'telegram')
This commit is contained in:
parent
4c8515a9e6
commit
301a973aad
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class ModuleManager(object):
|
||||||
"waiting for requirement")
|
"waiting for requirement")
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
module = imp.load_source(name, path)
|
module = imp.load_source("bitbot_%s" % name, path)
|
||||||
|
|
||||||
if not hasattr(module, "Module"):
|
if not hasattr(module, "Module"):
|
||||||
raise ModuleLoadException("module '%s' doesn't have a "
|
raise ModuleLoadException("module '%s' doesn't have a "
|
||||||
|
|
Loading…
Reference in a new issue