mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 20:58:58 +08:00
Continue if there is no scripts folder inside a resource folder
Co-authored-by: Casper Lamboo <casperlamboo@gmail.com>
This commit is contained in:
parent
8560a9b57c
commit
1924d8c1b0
@ -159,6 +159,8 @@ class PostProcessingPlugin(QObject, Extension):
|
|||||||
if root is None:
|
if root is None:
|
||||||
continue
|
continue
|
||||||
path = os.path.join(root, "scripts")
|
path = os.path.join(root, "scripts")
|
||||||
|
if not os.path.isdir(path):
|
||||||
|
continue
|
||||||
self.loadScripts(path)
|
self.loadScripts(path)
|
||||||
|
|
||||||
def loadScripts(self, path: str) -> None:
|
def loadScripts(self, path: str) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user