mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fix saving materials with spaces
This commit is contained in:
parent
e40991fcc3
commit
1e9e3a8cfb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue