diff --git a/src/sage/misc/sage_ostools.pyx b/src/sage/misc/sage_ostools.pyx index 57c8db69664..88227c8cfbe 100644 --- a/src/sage/misc/sage_ostools.pyx +++ b/src/sage/misc/sage_ostools.pyx @@ -32,12 +32,11 @@ def have_program(program, path=None): True sage: have_program('there_is_not_a_program_with_this_name') False - sage: from sage.env import SAGE_VENV - sage: have_program('sage', os.path.join(SAGE_VENV, 'bin')) + sage: have_program('sh', '/bin') True sage: have_program('sage', '/there_is_not_a_path_with_this_name') False - sage: have_program('there_is_not_a_program_with_this_name', os.path.join(SAGE_VENV, 'bin')) + sage: have_program('there_is_not_a_program_with_this_name', "/bin") False """ if path is None: