Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def reload_plugin() -> None:
|
||||
import sys
|
||||
|
||||
prefix = "{}.".format(__package__)
|
||||
|
||||
for module_name in tuple(
|
||||
filter(lambda m: m.startswith(prefix) and m != __name__, sys.modules)
|
||||
):
|
||||
del sys.modules[module_name]
|
||||
|
||||
|
||||
reload_plugin()
|
||||
|
||||
|
||||
from .plugin import * # noqa: F401, F403, E402
|
||||
Reference in New Issue
Block a user