Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-07-19 14:54:32 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-07-19 14:54:32 +0300
commit1e9e3a8cfb55aa3c1776b638e117ffae004b579f (patch)
tree960711867f9bf3a7b075f97a294aac5cafa41b7d
parente40991fcc336223e3840d6136a85abdb9d5008b7 (diff)
Fix saving materials with spaces
-rw-r--r--cura/CuraPackageManager.py2
1 files changed, 2 insertions, 0 deletions
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