Skip to content

Commit b91780c

Browse files
committed
files_treeview: Fix image import
1 parent 4c0a42b commit b91780c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/views/files_treeview.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def get_image_sequence_details(self, file_path):
209209
"""Inspect a file path and determine if this is an image sequence"""
210210

211211
# Get just the file name
212-
fileName = os.path.basename(file_path)
212+
(dirName, fileName) = os.path.split(file_path)
213213
extensions = ["png", "jpg", "jpeg", "gif", "tif", "svg"]
214214
match = re.findall(r"(.*[^\d])?(0*)(\d+)\.(%s)" % "|".join(extensions), fileName, re.I)
215215

0 commit comments

Comments
 (0)