Commit 722b98e8 authored by Nils Cedric Holle's avatar Nils Cedric Holle

Fix file explorer on Windows

parent f4c27d76
......@@ -34,9 +34,9 @@ class PSFileExplorer(QWidget):
model = QFileSystemModel(self)
model.setNameFilterDisables(True)
# model.setNameFilters(["*.py", "*.png", "*.pdf", ".npy", "*.npz"])
model.setRootPath(path)
model.setRootPath(os.path.normpath(path))
self.__treeView.setModel(model)
self.__treeView.setRootIndex(model.index(path))
self.__treeView.setRootIndex(model.index(os.path.normpath(path)))
self.__treeView.setSortingEnabled(True)
self.__treeView.sortByColumn(0, Qt.AscendingOrder)
self.__treeView.setColumnHidden(1, True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment