mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Mage, Initial Cond: Fix INI files export.
This commit is contained in:
1 parent
e66b7f665a
commit
d9176c6d83
3 files changed
+39
-7
No files matched your search
@@ -1,5 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import tempfile
|
||||
import os
|
||||
|
||||
from queue import Queue
|
||||
from tools import trace, timer
|
||||
|
||||
@@ -53,6 +56,7 @@ class SelectSolverWindow(ASubWindow, ListedSubWindow):
|
||||
def setup_connections(self):
|
||||
self.find(QPushButton, "pushButton_run").clicked.connect(self.accept)
|
||||
self.find(QPushButton, "pushButton_cancel").clicked.connect(self.reject)
|
||||
|
||||
@property
|
||||
def solver(self):
|
||||
return self._solver
|
||||
@@ -89,7 +93,16 @@ class SolverLogWindow(ASubMainWindow, ListedSubWindow):
|
||||
self.setup_alarm()
|
||||
self.setup_connections()
|
||||
|
||||
self._workdir = "/tmp/pamhyr/0/"
|
||||
self._workdir = ""
|
||||
if self._study.filename == "":
|
||||
self._workdir = tempfile.TemporaryDirectory()
|
||||
else:
|
||||
self._workdir = os.path.join(
|
||||
os.path.dirname(self._study.filename),
|
||||
"0"
|
||||
)
|
||||
os.makedirs(self._workdir, exist_ok = True)
|
||||
|
||||
self._alarm.start(500)
|
||||
self._output = Queue()
|
||||
self._process = self.new_process(parent)
|
||||
|
||||
Reference in new issue
Block a user