Explorar o código

Show relative path instead of full path to save some space

Martijn Buijs %!s(int64=7) %!d(string=hai) anos
pai
achega
6267cb4f43
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      labelme/app.py

+ 1 - 2
labelme/app.py

@@ -1039,8 +1039,7 @@ class MainWindow(QMainWindow, WindowMixin):
             for file in files:
                 if file.lower().endswith(tuple(extensions)):
                     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())
         return images