Skip to content

Commit

Permalink
Use PYTHON_VERSION var instead of just python3
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Dec 18, 2023
1 parent 1d4c6ac commit 5a3e1ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ preliminary_checks() {

# Make sure you can only run the script on the DQM servers
case $HOSTNAME in
dqmsrv-c2a06-07-01 | dqmsrv-c2a06-08-01 | dpapagia-dev-vm*)
dqmsrv-c2a06-07-01 | dqmsrv-c2a06-08-01 | dqmfu-c2b02-46-01 | dpapagia-dev-vm*)
echo "Valid DQM GUI server: $HOSTNAME"
;;
*)
Expand Down Expand Up @@ -342,7 +342,7 @@ source $ROOT_INSTALLATION_DIR/bin/thisroot.sh

# Crete the Python3 virtual environment for the GUI
_create_python_venv() {
python_exe=$(which python3)
python_exe=$(which python${PYTHON_VERSION})

python_venv_dir=$INSTALLATION_DIR/$DMWM_GIT_TAG/sw/venv
if [ -d "$python_venv_dir" ]; then
Expand All @@ -359,8 +359,8 @@ _create_python_venv() {
python_venv_exe=$python_venv_dir/bin/python

# Needed for specifying the PYTHONPATH later
PYTHON_VERSION=$($python_exe --version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
export PYTHON_VERSION
# PYTHON_VERSION=$($python_exe --version | cut -d ' ' -f 2 | cut -d '.' -f 1,2)
# export PYTHON_VERSION

PYTHON_LIB_DIR_NAME=lib/python$PYTHON_VERSION/site-packages
export PYTHON_LIB_DIR_NAME
Expand Down

0 comments on commit 5a3e1ac

Please sign in to comment.