Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15110: set env var for subprocess, check version in script (#15122)
Fixes #15110 - Add PYTHONSAFEPATH="true" to call to subprocess in get_search_dirs() - Check sys.version_info before modifying path in pyinfo.py To test, import mypy.modulefinder.get_search_dirs & run: - get_search_dirs() with no args - on Python 3.11, call get_search_dirs with an earlier version as python_executable - on Python < 3.11, call get_search_dirs with Python 3.11 as python_executable Expected: - consistent results, no exceptions Co-authored-by: eevel <eevel@weezel3.weezelnet> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
- Loading branch information