Skip to content

Commit

Permalink
os.path.normpath filenames to display paths correctly on Windows
Browse files Browse the repository at this point in the history
(cherry picked from commit e2778cb)
  • Loading branch information
Michael Litvin authored and wkentaro committed Dec 30, 2023
1 parent f063b64 commit ec88ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ def scanAllImages(self, folderPath):
for root, dirs, files in os.walk(folderPath):
for file in files:
if file.lower().endswith(tuple(extensions)):
relativePath = osp.join(root, file)
relativePath = os.path.normpath(osp.join(root, file))
images.append(relativePath)
images = natsort.os_sorted(images)
return images

0 comments on commit ec88ffe

Please sign in to comment.