aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-24 16:15:17 +0100
committerGravatar jesopo2018-09-24 16:15:17 +0100
commit301a973aad82e8a4264c3a00ab4a5d12fdba6fee (patch)
tree3835b119a17ffc69e4d1d14b2e184cf746b1d552 /src
parentRemove unneeded things from .gitignore (diff)
signature
Import modules internally as 'bitbot_%s' to avoid name collisions (e.g.
'telegram')
Diffstat (limited to 'src')
-rw-r--r--src/ModuleManager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ModuleManager.py b/src/ModuleManager.py
index 2a3ae713..3dc847e9 100644
--- a/src/ModuleManager.py
+++ b/src/ModuleManager.py
@@ -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 "