mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
config: Add default mage version into config.
This commit is contained in:
1 parent
6500c889d9
commit
c8a6d4ec74
2 files changed
+34
-1
No files matched your search
@@ -168,12 +168,21 @@ class AbstractSolver(object):
|
||||
# Run #
|
||||
#######
|
||||
|
||||
def _install_dir(self):
|
||||
return os.path.abspath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
".."
|
||||
)
|
||||
)
|
||||
|
||||
def run_input_data_fomater(self):
|
||||
if self._cmd_input == "":
|
||||
self._run_next()
|
||||
return True
|
||||
|
||||
cmd = self._cmd_input
|
||||
cmd = cmd.replace("@install_dir", self._install_dir())
|
||||
cmd = cmd.replace("@path", self._path_input)
|
||||
cmd = cmd.replace("@input", self.input_param())
|
||||
cmd = cmd.replace("@dir", self._process.workingDirectory())
|
||||
@@ -196,6 +205,7 @@ class AbstractSolver(object):
|
||||
return True
|
||||
|
||||
cmd = self._cmd_solver
|
||||
cmd = cmd.replace("@install_dir", self._install_dir())
|
||||
cmd = cmd.replace("@path", self._path_solver)
|
||||
cmd = cmd.replace("@input", self.input_param())
|
||||
cmd = cmd.replace("@dir", self._process.workingDirectory())
|
||||
@@ -219,6 +229,7 @@ class AbstractSolver(object):
|
||||
return True
|
||||
|
||||
cmd = self._cmd_output
|
||||
cmd = cmd.replace("@install_dir", self._install_dir())
|
||||
cmd = cmd.replace("@path", self._path_output)
|
||||
cmd = cmd.replace("@input", self.input_param())
|
||||
cmd = cmd.replace("@dir", self._process.workingDirectory())
|
||||
|
||||
Reference in new issue
Block a user