diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index f206909f20..3f3ac9f6af 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -348,7 +348,8 @@ class PostProcessingPlugin(QObject, Extension): # No signature needed return True - if os.path.split(file_path)[0] == os.path.join( + dir_path = os.path.split(file_path)[0] + if dir_path == os.path.join( PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), "scripts"): # Bundled scripts are trusted.