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

Commit

Permalink
Trac #29617: treat empty MAXIMA_FAS and KENZO_FAS as None.
Browse files Browse the repository at this point in the history
When these variables are defined to be the empty string, we now
assume that ECL knows where to find the corresponding files.
  • Loading branch information
orlitzky committed Apr 2, 2021
1 parent 683abb9 commit 1615691
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sage/features/kenzo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _is_present(self):

try:
from sage.env import KENZO_FAS
if KENZO_FAS is not None:
if KENZO_FAS:
ecl_eval("(require :kenzo \"{}\")".format(KENZO_FAS))
else:
ecl_eval("(require :kenzo)")
Expand Down
2 changes: 1 addition & 1 deletion src/sage/interfaces/kenzo.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# are replaced with underscores to get valid Python identifiers.
if Kenzo().is_present():
from sage.env import KENZO_FAS
if KENZO_FAS is not None:
if KENZO_FAS:
ecl_eval("(require :kenzo \"{}\")".format(KENZO_FAS))
else:
ecl_eval("(require :kenzo)")
Expand Down
2 changes: 1 addition & 1 deletion src/sage/interfaces/maxima_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
## We begin here by initializing Maxima in library mode
## i.e. loading it into ECL
ecl_eval("(setf *load-verbose* NIL)")
if MAXIMA_FAS is not None:
if MAXIMA_FAS:
ecl_eval("(require 'maxima \"{}\")".format(MAXIMA_FAS))
else:
ecl_eval("(require 'maxima)")
Expand Down

0 comments on commit 1615691

Please sign in to comment.