Skip to content

Commit

Permalink
Print stack
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Aug 22, 2024
1 parent db32bed commit e894881
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/python/antares_xpansion/problem_generator_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def _lp_step(self):
produces a file named with xpansionConfig.MPS_TXT
"""

returned_l = subprocess.run(self._get_lp_namer_command(), shell=False,
print(self._get_lp_namer_command())
returned_l = subprocess.run(self._get_lp_namer_command(), shell=True,
stdout=sys.stdout, stderr=sys.stderr)

if returned_l.returncode != 0:
Expand Down Expand Up @@ -147,8 +147,9 @@ def _get_lp_namer_command(self):
if not self.lp_namer_exe_path.is_file():
raise ProblemGeneratorDriver.LPNamerExeError(
f"LP namer exe: {self.lp_namer_exe_path} not found")
command = [self.lp_namer_exe_path]
command.extend(self.lp_namer_options())
command = 'gdb -batch -ex "run '
command += ' '.join(self.lp_namer_options())
command += '" -ex "bt" ' + str(self.lp_namer_exe_path)# + ' 2>&1 | grep -v ^"No stack."$'
return command

output_path = property(get_output_path, set_output_path)

0 comments on commit e894881

Please sign in to comment.