|
@@ -926,7 +926,7 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
|
|
|
imagePath = osp.relpath(
|
|
|
self.imagePath, osp.dirname(filename))
|
|
|
imageData = self.imageData if self._config['store_data'] else None
|
|
|
- if not osp.exists(osp.dirname(filename)):
|
|
|
+ if osp.dirname(filename) and not osp.exists(osp.dirname(filename)):
|
|
|
os.makedirs(osp.dirname(filename))
|
|
|
lf.save(
|
|
|
filename=filename,
|