From 301a973aad82e8a4264c3a00ab4a5d12fdba6fee Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Sep 2018 16:15:17 +0100 Subject: [PATCH] Import modules internally as 'bitbot_%s' to avoid name collisions (e.g. 'telegram') --- src/ModuleManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "