refactor(tools): clean up and use proper argument parser

This commit is contained in:
2024-12-30 03:31:49 -05:00
parent 47955cdfd5
commit 2060e25f75
8 changed files with 75 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ from .utils import *
def __reload_module__():
for name, module in globals().items():
if inspect.ismodule(module):
if inspect.ismodule(module) and name not in constants.RELOAD_BLACKLISTED_MODULES:
importlib.reload(module)
if "__reload_module__" in dir(module) and name not in reloaded_modules:
reloaded_modules.add(name)