Changeset 14170


Ignore:
Timestamp:
Nov 25, 2019 2:27:26 PM (2 weeks ago)
Author:
aramle
Message:

#5877 Made jm_ipython.sh.in and jm_python.sh.in possible to run with python venv

Location:
branches/dev-2385/Python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-2385/Python/jm_ipython.sh.in

    r11468 r14170  
    1212cd ${CURRENT_DIR}
    1313
     14if [[ -z "${PY_VENV_PATH}" ]]; then
     15    . ${PY_VENV_PATH}/bin/activate
     16elif [[ -f "${FILE_DIR}/../../py3venv" ]]; then
     17    . ${FILE_DIR}/../../py3venv/bin/activate
     18fi   
     19
    1420#Set variables using relative paths
    1521JMODELICA_HOME=${FILE_DIR}/.. \
  • branches/dev-2385/Python/jm_python.sh.in

    r11468 r14170  
    1212cd ${CURRENT_DIR}
    1313
     14if [[ -z "${PY_VENV_PATH}" ]]; then
     15    . ${PY_VENV_PATH}/bin/activate
     16elif [[ -f "${FILE_DIR}/../../py3venv" ]]; then
     17    . ${FILE_DIR}/../../py3venv/bin/activate
     18fi
     19
    1420#Set variables using relative paths
    1521JMODELICA_HOME=${FILE_DIR}/.. \
Note: See TracChangeset for help on using the changeset viewer.