TNO Intern

Commit b417f2d5 authored by Arjo Segers's avatar Arjo Segers
Browse files

Ensure that job files use the virtual environment if needed.

parent f35ddfaf
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -270,8 +270,16 @@ my.work : /Scratch/${USER}/CSO-Tutorial
! run jobs in foreground:
*.script.class                      :  utopya.UtopyaJobScriptForeground

! dummy value, will be defined when running in virtrual environment:
VIRTUAL_ENV                         :
! running in virutual envionment?
#if "${VIRTUAL_ENV}" > ""
! interpretor from virtual enviornment, the system path is set automatically:
*.shell                             :  ${VIRTUAL_ENV}/bin/python3
#else
! search path for python modules:
*.pypath                            :  ${CSO_PREFIX}/src:${CSO_PREFIX}/src/utopya:${CSO_PREFIX}/src/cso
#endif

! work directory for jobs; 
*.workdir                           :  ${my.work}/__NAME2PATH__