From 935c71eddade5b1468a61f148c989a4149b6d438 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Fri, 17 Jan 2020 17:25:00 +0100 Subject: [PATCH] Fix name/file-location oops. --- plugins/PostProcessingPlugin/PostProcessingPlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index bb1d42c42e..826b655988 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -162,12 +162,12 @@ class PostProcessingPlugin(QObject, Extension): # Iterate over all scripts. if script_name not in sys.modules: try: - file_location = __name__ + "." + script_name, os.path.join(path, script_name + ".py") + file_location = os.path.join(path, script_name + ".py") trust_instance = Trust.getInstanceOrNone() if trust_instance is not None and Trust.signatureFileExistsFor(file_location): if not trust_instance.signedFileCheck(file_location): raise Exception("Can't validate script {0}".format(file_location)) - spec = importlib.util.spec_from_file_location(file_location) + spec = importlib.util.spec_from_file_location(__name__ + "." + script_name, file_location) loaded_script = importlib.util.module_from_spec(spec) if spec.loader is None: continue