When reloading plugins don't delete system modules

This commit is contained in:
qu1ck 2021-12-01 16:10:59 -08:00 committed by Jon Evans
parent 0e65fe5d8d
commit 0f67c7ed25
1 changed files with 2 additions and 1 deletions

View File

@ -149,11 +149,12 @@ def LoadPluginModule(Dirname, ModuleName, FileName):
mod = __import__( ModuleName, locals(), globals() )
mods_after = set( sys.modules ).difference( mods_before )
dependencies = [m for m in mods_after if m.startswith(ModuleName)]
KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
"modification_time":mtime,
"ModuleName":mod,
"dependencies": mods_after }
"dependencies": dependencies }
except:
if ModuleName in KICAD_PLUGINS: