From 1e9e3a8cfb55aa3c1776b638e117ffae004b579f Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Tue, 19 Jul 2022 13:54:32 +0200 Subject: Fix saving materials with spaces --- cura/CuraPackageManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index 4937618917..20bb0fcb12 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -14,6 +14,7 @@ from cura.Settings.GlobalStack import GlobalStack from UM.PackageManager import PackageManager # The class we're extending. from UM.Resources import Resources # To find storage paths for some resource types. from UM.i18n import i18nCatalog +from urllib.parse import unquote_plus catalog = i18nCatalog("cura") @@ -86,6 +87,7 @@ class CuraPackageManager(PackageManager): package_id = material_package.name for root, _, file_names in os.walk(material_package.path): + file_name = unquote_plus(file_name) if file_name not in file_names: # File with the name we are looking for is not in this directory continue -- cgit v1.2.3