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

Commit

Permalink
src/sage/geometry/polyhedron/palp_database.py: Use PalpExecutable(exe…
Browse files Browse the repository at this point in the history
…cutable).absolute_filename()
  • Loading branch information
Matthias Koeppe committed Mar 6, 2022
1 parent 314ac7a commit 27b5514
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/geometry/polyhedron/palp_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

from sage.structure.sage_object import SageObject
from sage.rings.integer_ring import ZZ
from sage.features.palp import PalpExecutable

from sage.interfaces.process import terminate

Expand Down Expand Up @@ -134,7 +135,7 @@ def _palp_Popen(self):
<...Popen...>
"""

return Popen(["class.x", "-b2a", "-di", self._data_basename],
return Popen([PalpExecutable("class").absolute_filename(), "-b2a", "-di", self._data_basename],
stdout=PIPE, encoding='utf-8', errors='surrogateescape')

def _read_vertices(self, stdout, rows, cols):
Expand Down Expand Up @@ -459,7 +460,7 @@ def _palp_Popen(self):
<...Popen...>
"""

return Popen(['class-4d.x', '-He',
return Popen([PalpExecutable('class-4d').absolute_filename(), '-He',
'H{}:{}L100000000'.format(self._h21, self._h11),
'-di', self._data_basename], stdout=PIPE,
encoding='utf-8', errors='surrogateescape')

0 comments on commit 27b5514

Please sign in to comment.