mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Add comment
CURA-8610
This commit is contained in:
parent
71a817697b
commit
ddb49ddba4
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ class CuraPackageManager(PackageManager):
|
||||||
def isMaterialBundled(self, file_name: str, guid: str):
|
def isMaterialBundled(self, file_name: str, guid: str):
|
||||||
""" Check if there is a bundled material name with file_name and guid """
|
""" Check if there is a bundled material name with file_name and guid """
|
||||||
for path in Resources.getSecureSearchPaths():
|
for path in Resources.getSecureSearchPaths():
|
||||||
|
# Secure search paths are install directory paths, if a material is in here it must be bundled.
|
||||||
|
|
||||||
paths = [Path(p) for p in glob.glob(path + '/**/*.xml.fdm_material')]
|
paths = [Path(p) for p in glob.glob(path + '/**/*.xml.fdm_material')]
|
||||||
for material in paths:
|
for material in paths:
|
||||||
if material.name == file_name:
|
if material.name == file_name:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue