Reduce importance of importer; new tiny context for each module, instead of having entire bot context
This commit is contained in:
parent
bafc14bd79
commit
1f5364c387
5 changed files with 165 additions and 158 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue