djoproject / pyshell

An advanced shell support in python to quickly write a shell
GNU General Public License v3.0
3 stars 0 forks source link

SYSTEM/Make loaders loadable in local #108

Open djoproject opened 7 years ago

djoproject commented 7 years ago

Description

Addons are currently only loadable for the whole application. It could be interesting to have the possibilities to load an addon in a local context. So a procedure would be able to load an addon only for its execution.

Improve the existing "addon load" command and add some feature such:

TODO to be loadable in local, an addon must be written following several rules, which one?

TODO create a method to check if an addon can be loader in local

Depends upon

Dependency for

djoproject commented 7 years ago

PRBLM 1: an addon can be loaded only once at at time, without caring about the scope. So if two thread try to load the same addon, one of them may have the message "addon already load". The import built-in will always returns the same addons object, with the lastest load or unload status.