瀏覽代碼

Show relative path instead of full path to save some space

Martijn Buijs 7 年之前
父節點
當前提交
6267cb4f43
共有 1 個文件被更改,包括 1 次插入2 次删除
  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