Commit 0bc1168f526cd9812d0c0b82725c4ef4a8fe5ec4
1 parent
97906110
Exists in
master
Giving priority to user plugins
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
invesalius/plugins.py
... | ... | @@ -47,11 +47,9 @@ class PluginManager: |
47 | 47 | |
48 | 48 | def find_plugins(self): |
49 | 49 | self.plugins = {} |
50 | - for p in sorted( | |
51 | - chain( | |
52 | - glob.glob(str(inv_paths.USER_PLUGINS_DIRECTORY.joinpath("**/plugin.json")), recursive=True), | |
50 | + for p in chain( | |
53 | 51 | glob.glob(str(inv_paths.PLUGIN_DIRECTORY.joinpath("**/plugin.json")), recursive=True), |
54 | - ) | |
52 | + glob.glob(str(inv_paths.USER_PLUGINS_DIRECTORY.joinpath("**/plugin.json")), recursive=True), | |
55 | 53 | ): |
56 | 54 | try: |
57 | 55 | p = pathlib.Path(p) | ... | ... |