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

Commit

Permalink
src/sage/rings/polynomial/msolve.py: Use absolute filename of msolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe authored and mezzarobba committed Sep 16, 2022
1 parent 91d69cc commit fa77041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/rings/polynomial/msolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ def _run_msolve(ideal, options):

# Run msolve

msolve().require()

drlpolring = ideal.ring().change_ring(order='degrevlex')
polys = ideal.change_ring(drlpolring).gens()
msolve_in = tempfile.NamedTemporaryFile(mode='w',
encoding='ascii', delete=False)
command = ["msolve", "-f", msolve_in.name] + options
command = [msolve().absolute_filename(), "-f", msolve_in.name] + options
try:
print(",".join(drlpolring.variable_names()), file=msolve_in)
print(base.characteristic(), file=msolve_in)
Expand Down

0 comments on commit fa77041

Please sign in to comment.