Skip to content

Commit 61a29ea

Browse files
authored
Merge pull request #3048 from UKHSA-Internal/chore/fix-python-version
CDD-000: update _venv script to get version
2 parents 8b2b026 + 93901ed commit 61a29ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/_venv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function _venv_deactivate() {
4545
}
4646

4747
function _venv_create() {
48-
local python_version=`cat .python-version`
48+
local python_version=$(cat .python-version | cut -d'.' -f1-2)
4949
python${python_version} -m venv --upgrade-deps .venv
5050
_venv_activate
5151
pip install -r requirements.txt

0 commit comments

Comments
 (0)