mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Change trusted scripts path from resources to plugin/scripts
CURA-7319
This commit is contained in:
parent
6bf00d7ea1
commit
92f278acc8
2 changed files with 14 additions and 5 deletions
|
@ -348,7 +348,9 @@ class PostProcessingPlugin(QObject, Extension):
|
|||
# No signature needed
|
||||
return True
|
||||
|
||||
if os.path.split(file_path) == os.path.join(Resources.getStoragePath(Resources.Resources), "scripts"):
|
||||
if os.path.split(file_path)[0] == os.path.join(
|
||||
PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"),
|
||||
"scripts"):
|
||||
# Bundled scripts are trusted.
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue