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

Commit

Permalink
src/sage: Replace some SAGE_LOCAL by SAGE_VENV
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 12, 2020
1 parent c35c170 commit c585d94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import types
import sage.misc.flatten
from sage.structure.sage_object import SageObject
from sage.env import DOT_SAGE, SAGE_LIB, SAGE_SRC, SAGE_LOCAL, SAGE_EXTCODE
from sage.env import DOT_SAGE, SAGE_LIB, SAGE_SRC, SAGE_VENV, SAGE_EXTCODE
from sage.misc.temporary_file import tmp_dir
from cysignals.signals import AlarmInterrupt, init_cysignals

Expand Down Expand Up @@ -1079,7 +1079,7 @@ def run_val_gdb(self, testing=False):
return 2
opt = self.options
if opt.gdb:
cmd = '''exec gdb -x "%s" --args '''%(os.path.join(SAGE_LOCAL,"bin","sage-gdb-commands"))
cmd = '''exec gdb -x "%s" --args '''%(os.path.join(SAGE_VENV, "bin", "sage-gdb-commands"))
flags = ""
if opt.logfile:
sage_cmd += " --logfile %s"%(opt.logfile)
Expand Down
3 changes: 2 additions & 1 deletion src/sage/misc/sage_ostools.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def have_program(program, path=None):
True
sage: have_program('there_is_not_a_program_with_this_name')
False
sage: have_program('sage', os.path.join(SAGE_LOCAL, 'bin'))
sage: from sage.env import SAGE_VENV
sage: have_program('sage', os.path.join(SAGE_VENV, 'bin'))
True
sage: have_program('sage', '/there_is_not_a_path_with_this_name')
False
Expand Down
4 changes: 2 additions & 2 deletions src/sage/repl/ipython_kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import errno

from sage.env import (
SAGE_DOC, SAGE_LOCAL, SAGE_EXTCODE,
SAGE_DOC, SAGE_VENV, SAGE_EXTCODE,
SAGE_VERSION,
MATHJAX_DIR, JSMOL_DIR, THREEJS_DIR,
)
Expand Down Expand Up @@ -188,7 +188,7 @@ def _kernel_cmd(self):
'{connection_file}']
"""
return [
os.path.join(SAGE_LOCAL, 'bin', 'sage'),
os.path.join(SAGE_VENV, 'bin', 'sage'),
'--python',
'-m', 'sage.repl.ipython_kernel',
'-f', '{connection_file}',
Expand Down

0 comments on commit c585d94

Please sign in to comment.