Skip to content

Commit 66aa66e

Browse files
committed
Bug: Scene loader check
1 parent 4535096 commit 66aa66e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

demosys/loaders/scene/base.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
13
from demosys.loaders.base import BaseLoader
24
from demosys.scene import Scene
35

@@ -17,8 +19,10 @@ def load(self) -> Scene:
1719
@classmethod
1820
def supports_file(cls, meta):
1921
"""Check if the loader has a supported file extension"""
22+
path = Path(meta.path)
23+
2024
for ext in cls.file_extensions:
21-
if meta.resolved_path.suffixes[:len(ext)] == ext:
25+
if path.suffixes[:len(ext)] == ext:
2226
return True
2327

2428
return False

0 commit comments

Comments
 (0)