Change trusted scripts path from resources to plugin/scripts

CURA-7319
This commit is contained in:
Nino van Hooff 2020-03-25 16:51:21 +01:00
parent 6bf00d7ea1
commit 92f278acc8
2 changed files with 14 additions and 5 deletions

View file

@ -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