Continue if there is no scripts folder inside a resource folder

Co-authored-by: Casper Lamboo <casperlamboo@gmail.com>
This commit is contained in:
Aldo Hoeben 2023-04-14 20:34:59 +02:00 committed by fieldOfView
parent 8560a9b57c
commit 1924d8c1b0

View file

@ -159,6 +159,8 @@ class PostProcessingPlugin(QObject, Extension):
if root is None:
continue
path = os.path.join(root, "scripts")
if not os.path.isdir(path):
continue
self.loadScripts(path)
def loadScripts(self, path: str) -> None: