Commit 3a1b0960 authored by Immanuel Weber's avatar Immanuel Weber

support directly open directory

by supplying a path instead of an file as first cmd argument
parent f3c93b7e
......@@ -485,9 +485,9 @@ class MainWindow(QMainWindow, WindowMixin):
self.labelCoordinates = QLabel('')
self.statusBar().addPermanentWidget(self.labelCoordinates)
# Open Dir if deafult file
# open dir if defaultFilename is a directory
if self.filePath and os.path.isdir(self.filePath):
self.openDirDialog(dirpath=self.filePath)
self.importDirImages(self.filePath)
## Support Functions ##
def set_format(self, save_format):
......
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