Skip to content
Snippets Groups Projects
Commit 9a21381c authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

Dat converter - QFileDialog bug correction

parent fc426394
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,19 @@ class DatconvertUim: ...@@ -27,11 +27,19 @@ class DatconvertUim:
def select_source_files(self): def select_source_files(self):
# Get the file names of the source .dat files # Get the file names of the source .dat files
filenames = QFileDialog.getOpenFileNames( if "PYCHARM_HOSTED" in os.environ:
caption="Select all the to-be-converted Picarro's .dat files", filenames = QFileDialog.getOpenFileNames(
directory=os.path.expanduser("~"), caption="Select all the to-be-converted Picarro's .dat files",
filter="DAT (*.dat)", directory=os.path.expanduser("~"),
)[0] filter="DAT (*.dat)",
options=QFileDialog.DontUseNativeDialog,
)[0]
else:
filenames = QFileDialog.getOpenFileNames(
caption="Select all the to-be-converted Picarro's .dat files",
directory=os.path.expanduser("~"),
filter="DAT (*.dat)"
)[0]
if len(filenames) == 0: if len(filenames) == 0:
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment