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 committed Sep 15, 2022
1 parent dd08bb1 commit 21c3c97
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 @@ -48,13 +48,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 21c3c97

Please sign in to comment.