File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727import time
2828from configparser import ConfigParser
2929from hashlib import sha256 , md5
30- from importlib import import_module , reload
30+ from importlib import import_module
3131from pathlib import Path
3232from signal import signal , SIGINT , SIGTERM , SIGABRT
3333from threading import Thread
@@ -1523,7 +1523,7 @@ def load_plugins(self):
15231523 if not include :
15241524 for path in sorted (Path (root .replace ("." , "/" )).rglob ("*.py" )):
15251525 module_path = '.' .join (path .parent .parts + (path .stem ,))
1526- module = reload ( import_module (module_path ) )
1526+ module = import_module (module_path )
15271527
15281528 for name in vars (module ).keys ():
15291529 # noinspection PyBroadException
@@ -1545,7 +1545,7 @@ def load_plugins(self):
15451545 warn_non_existent_functions = True
15461546
15471547 try :
1548- module = reload ( import_module (module_path ) )
1548+ module = import_module (module_path )
15491549 except ImportError :
15501550 log .warning ('[{}] [LOAD] Ignoring non-existent module "{}"' .format (
15511551 self .session_name , module_path ))
You can’t perform that action at this time.
0 commit comments