Reduce importance of importer; new tiny context for each module, instead of having entire bot context

This commit is contained in:
nemunaire 2015-02-10 03:46:50 +01:00
commit 1f5364c387
5 changed files with 165 additions and 158 deletions

View file

@ -102,7 +102,7 @@ if __name__ == "__main__":
prmpt = nemubot.prompt.Prompt()
# Register the hook for futur import
sys.meta_path.append(ModuleFinder(context, prmpt))
sys.meta_path.append(ModuleFinder(context.modules_paths, context.add_module))
# Load requested configuration files
for path in args.files: