Browse Source

Show relative path instead of full path to save some space

Martijn Buijs 7 years ago
parent
commit
6267cb4f43
1 changed files with 1 additions and 2 deletions
  1. 1 2
      labelme/app.py

+ 1 - 2
labelme/app.py

@@ -1039,8 +1039,7 @@ class MainWindow(QMainWindow, WindowMixin):
             for file in files:
             for file in files:
                 if file.lower().endswith(tuple(extensions)):
                 if file.lower().endswith(tuple(extensions)):
                     relativePath = os.path.join(root, file)
                     relativePath = os.path.join(root, file)
-                    path = str(os.path.abspath(relativePath))
-                    images.append(path)
+                    images.append(relativePath)
         images.sort(key=lambda x: x.lower())
         images.sort(key=lambda x: x.lower())
         return images
         return images