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

Commit

Permalink
sage.geometry.polyhedron.backend_cdd: Use CddExecutable(...).absolute…
Browse files Browse the repository at this point in the history
…_filename()
  • Loading branch information
Matthias Koeppe committed Mar 6, 2022
1 parent bbb6c1f commit 14d3a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/geometry/polyhedron/backend_cdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from subprocess import Popen, PIPE
from sage.rings.integer_ring import ZZ
from sage.matrix.constructor import matrix
from sage.features.cddlib import CddExecutable

from .base import Polyhedron_base
from .base_QQ import Polyhedron_QQ
Expand Down Expand Up @@ -157,7 +158,7 @@ def _run_cdd(self, cdd_input_string, cmdline_arg, verbose=False):
print('---- CDD input -----')
print(cdd_input_string)

cdd_proc = Popen([self._cdd_executable, cmdline_arg],
cdd_proc = Popen([CddExecutable(self._cdd_executable).absolute_filename(), cmdline_arg],
stdin=PIPE, stdout=PIPE, stderr=PIPE,
encoding='latin-1')
ans, err = cdd_proc.communicate(input=cdd_input_string)
Expand Down

0 comments on commit 14d3a65

Please sign in to comment.