Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if python starts python3 #6239

Merged
merged 4 commits into from
Aug 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
dev_tools/pypath - verify python runs Python 3
  • Loading branch information
pavoljuhas committed Aug 11, 2023
commit 35f0bb95a7632430bac87dc97bad6b32481933a5
6 changes: 6 additions & 0 deletions dev_tools/pypath
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ else
_PYPATH_BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
fi

if ! python --version | grep -q -F "Python 3."; then
echo "python command does not start Python 3" >&2
echo "Please use a virtual environment created for Python 3." >&2
return 2
fi

_PYPATH_PREFIX="${_PYPATH_BASE_DIR}$(
cd "${_PYPATH_BASE_DIR}" &&
env PYTHONPATH=. python dev_tools/modules.py list --mode folder |
Expand Down