Commit ecbd05c
committed
Prevent invalid plugin dir from creating problems
In `PythonPluginManager::loadPluginsFrom`, a import of pycc_runtime was done to get the subclasses of the plugins base class. However that import can only work if pycc had already been imported before as pycc contains definitions necessary for pycc_runtime to function. And plugins needs to import pycc to be able to subclass So if no plugins were imported (either because of invalid path or empty folders) the pycc_runtime import would fail, and subsequent import of pycc_runtime would also fail making the runtime useless as no interaction with the main app was possible The fix is to import pycc intead as pycc will import pycc_runtime1 parent f581ee4 commit ecbd05c
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
| |||
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
145 | | - | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments