Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
sage.interfaces.four_ti_2: Use Executable.absolute_filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Mar 5, 2022
1 parent 9266709 commit a4d0ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/interfaces/four_ti_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ def call(self, command, project, verbose=True, *, options=()):
[-5 3 0]
"""
import subprocess
import shlex
feature = FourTi2Executable(command)
feature.require()
executable = feature.executable
executable = feature.absolute_filename()
options = " ".join(options)
cmd = f'{executable} {options} {project}'
cmd = f'{shlex.quote(executable)} {options} {project}'
if verbose is False:
cmd += " > /dev/null 2> /dev/null"
subprocess.call(cmd, shell=True, cwd=self.directory())
Expand Down

0 comments on commit a4d0ed6

Please sign in to comment.