mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 16:18:58 +08:00
Remove unnecessary os.path.basename call
This commit is contained in:
parent
856bd86cd1
commit
1e2764278e
@ -11,7 +11,7 @@ def collecAllPlatformMeshes():
|
|||||||
result = []
|
result = []
|
||||||
for root, directories, filenames in os.walk(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources", "meshes"))):
|
for root, directories, filenames in os.walk(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources", "meshes"))):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if os.path.basename(filename) not in __exclude_filenames:
|
if filename not in __exclude_filenames:
|
||||||
result.append(os.path.join(root, filename))
|
result.append(os.path.join(root, filename))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user