-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.py
More file actions
15 lines (13 loc) · 616 Bytes
/
Copy pathmain.py
File metadata and controls
15 lines (13 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
# clear modules cache if package is reloaded (after update?)
prefix = __package__ + '.plugin' # type: ignore # don't clear the base package
for module_name in [module_name for module_name in sys.modules if module_name.startswith(prefix)]:
del sys.modules[module_name]
del prefix
from .plugin.commands import ( # noqa: E402
CodexPromptCommand, # noqa: E402, F401
CodexSubmitInputPanelCommand, # noqa: E402, F401
CodexOpenTranscriptCommand, # noqa: E402, F401
CodexResetChatCommand, # noqa: E402, F401
)
from .plugin.lifecycle import CodexWindowEventListener # noqa: E402, F401