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")
|
||||
else:
|
||||
break
|
||||
module = imp.load_source(name, path)
|
||||
module = imp.load_source("bitbot_%s" % name, path)
|
||||
|
||||
if not hasattr(module, "Module"):
|
||||
raise ModuleLoadException("module '%s' doesn't have a "
|
||||
|
|
Loading…
Reference in a new issue