mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix loading scripts from all registered resource paths
This commit is contained in:
parent
0edd6278f8
commit
d790de8706
1 changed files with 3 additions and 1 deletions
|
@ -142,7 +142,9 @@ class PostProcessingPlugin(QObject, Extension):
|
||||||
# The PostProcessingPlugin path is for built-in scripts.
|
# The PostProcessingPlugin path is for built-in scripts.
|
||||||
# The Resources path is where the user should store custom scripts.
|
# The Resources path is where the user should store custom scripts.
|
||||||
# The Preferences path is legacy, where the user may previously have stored scripts.
|
# The Preferences path is legacy, where the user may previously have stored scripts.
|
||||||
for root in [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Resources), Resources.getStoragePath(Resources.Preferences)]:
|
resource_folders = [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Preferences)]
|
||||||
|
resource_folders.extend(Resources.getAllPathsForType(Resources.Resources))
|
||||||
|
for root in resource_folders:
|
||||||
if root is None:
|
if root is None:
|
||||||
continue
|
continue
|
||||||
path = os.path.join(root, "scripts")
|
path = os.path.join(root, "scripts")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue