1- macro(_MSPATH="msolve"):
2-
31# /* This file is part of msolve.
42# *
53# * msolve is free software: you can redistribute it and/or modify
@@ -50,7 +48,8 @@ MSolve:=module()
5048option package;
5149
5250export MSolveGroebner, MSolveGroebnerLM,
53- MSolveRealRoots,MSolveParam;
51+ MSolveRealRoots,MSolveParam,
52+ SetMSolvePath, GetMSolvePath;
5453
5554local GetSystem, ToMSolve, GetOptions, CheckCharacteristic, ReadPolynomial,
5655ExtractParametrization, RemoveFiles,
@@ -63,9 +62,19 @@ BuildSolution, Eval_linform, MakeBinaryInterval,
6362Parametrization,
6463RefineSolutions,
6564SplitAndRefinePerCoordinates,
66- SplitAndRefinePerConstraints;
65+ SplitAndRefinePerConstraints,
66+ DefaultMSolvePath;
67+
68+ DefaultMSolvePath := "msolve":
6769
70+ GetMSolvePath:=proc()
71+ return DefaultMSolvePath:
72+ end proc:
6873
74+ SetMSolvePath:=proc(path::string)
75+ DefaultMSolvePath := path:
76+ return DefaultMSolvePath:
77+ end proc:
6978
7079GetSystem:=proc()
7180local sys;
@@ -173,7 +182,7 @@ verb, param, nthreads, output, gb, elim, linalg;
173182 printf("Error in format options");
174183 end if;
175184 else
176- msolve_path := _MSPATH ;
185+ msolve_path := DefaultMSolvePath ;
177186 end if;
178187
179188 if member("file_dir", map(lhs, opts)) then
0 commit comments