This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac 33624: fix doctest when sage scripts are not in SAGE_VENV/bin
We don't know `SAGE_VENV/bin` contains `sage`, but `sys.argv[0]` should be the full path to `sage-ipython` and the same directory should also have `sage`. For a normal install, `os.path.dirname(sys.argv[0])` should be the same as `SAGE_VENV/bin`. For installs where the `sys.prefix` contains system python packages but NOT the sagelib or the sage scripts, using `sys.argv[0]` should be ok but using `SAGE_VENV/bin` fails this particular doctest. This commit doesn't change any functionality, only a doctest.
- Loading branch information