211 return |
211 return |
212 |
212 |
213 self.__autoOpen = dlg.getAction() == "open" |
213 self.__autoOpen = dlg.getAction() == "open" |
214 if PYQT_VERSION_STR >= "5.0.0": |
214 if PYQT_VERSION_STR >= "5.0.0": |
215 from PyQt5.QtCore import QStandardPaths |
215 from PyQt5.QtCore import QStandardPaths |
216 tempLocation = QStandardPaths.storageLocation( |
216 tempLocation = QStandardPaths.standardLocations( |
217 QStandardPaths.TempLocation) |
217 QStandardPaths.TempLocation)[0] |
218 else: |
218 else: |
219 from PyQt5.QtGui import QDesktopServices |
219 from PyQt5.QtGui import QDesktopServices |
220 tempLocation = QDesktopServices.storageLocation( |
220 tempLocation = QDesktopServices.storageLocation( |
221 QDesktopServices.TempLocation) |
221 QDesktopServices.TempLocation) |
222 fileName = tempLocation + '/' + \ |
222 fileName = tempLocation + '/' + \ |