Skip to content

Commit 30bd5d0

Browse files
committed
commit_20221207_13:20
1 parent d8dd835 commit 30bd5d0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tools/running_tool_entrypoint_app/hmc_tool_running_entrypoint_app_main.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ script_date='2022/10/14'
1010
file_entrypoint_app_main_default='hmc_tool_running_entrypoint_app_main.py'
1111
file_entrypoint_app_configuration_default='hmc_tool_running_entrypoint_app_configuration_hmc_generic.json'
1212

13+
# Virtualenv default definition(s)
14+
virtualenv_folder='/home/fabio/fp_system_conda/'
15+
virtualenv_name='fp_system_conda_hmc_libraries'
16+
1317
# Default script folder
1418
script_folder=$PWD
1519

@@ -26,6 +30,15 @@ Usage of docker runner:
2630
-c filename of entrypoint app configuration;"
2731
#-----------------------------------------------------------------------------------------
2832

33+
#-----------------------------------------------------------------------------------------
34+
# Activate virtualenv
35+
export PATH=$virtualenv_folder/bin:$PATH
36+
source activate $virtualenv_name
37+
38+
# Add path to pythonpath
39+
export PYTHONPATH="${PYTHONPATH}:$script_folder"
40+
#-----------------------------------------------------------------------------------------
41+
2942
# ----------------------------------------------------------------------------------------
3043
# Info script start
3144
echo " ==================================================================================="

0 commit comments

Comments
 (0)