Merge pull request #2350 from MoritzBrueckner/fix-nodes-reload
Fix add-on reloading when there are new unimported node files
This commit is contained in:
commit
b579c8a15d
|
@ -75,7 +75,7 @@ def init_nodes():
|
||||||
|
|
||||||
# Only look at modules in sub packages
|
# Only look at modules in sub packages
|
||||||
elif module_name.rsplit('.', 1)[0] != __package__:
|
elif module_name.rsplit('.', 1)[0] != __package__:
|
||||||
if 'HAS_RELOADED' not in globals():
|
if 'HAS_RELOADED' not in globals() or module_name not in sys.modules:
|
||||||
_module = importlib.import_module(module_name)
|
_module = importlib.import_module(module_name)
|
||||||
else:
|
else:
|
||||||
# Reload the module if the SDK was reloaded at least once
|
# Reload the module if the SDK was reloaded at least once
|
||||||
|
|
Loading…
Reference in a new issue