diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-07-19 15:12:35 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-07-19 15:12:35 +0300 |
commit | 3dad5d564d86ea76614107c6245f82df92a0619b (patch) | |
tree | bb5f241d4be415bb7d0d3dd11658683ee24a73e5 /cura | |
parent | a6b15d27b7378ffc9d492dae9c6f2c0e4c333039 (diff) |
Only unquote once in `getMaterialFilePackageId`5.1.0
Diffstat (limited to 'cura')
-rw-r--r-- | cura/CuraPackageManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index 20bb0fcb12..456aac97ac 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -83,11 +83,11 @@ class CuraPackageManager(PackageManager): def getMaterialFilePackageId(self, file_name: str, guid: str) -> str: """Get the id of the installed material package that contains file_name""" + file_name = unquote_plus(file_name) for material_package in [f for f in os.scandir(self._installation_dirs_dict["materials"]) if f.is_dir()]: 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 |