fix: reload to refresh previously loaded debugtalk module

This commit is contained in:
debugtalk
2020-06-08 17:18:25 +08:00
parent 80cbfdc3ca
commit a33f689726
3 changed files with 7 additions and 1 deletions

View File

@@ -371,6 +371,8 @@ def load_debugtalk_functions() -> Dict[Text, Callable]:
"""
# load debugtalk.py module
imported_module = importlib.import_module("debugtalk")
# reload to refresh previously loaded module
imported_module = importlib.reload(imported_module)
return load_module_functions(imported_module)