diff --git a/genmonmaint.sh b/genmonmaint.sh index 5138b5fd..3140739e 100755 --- a/genmonmaint.sh +++ b/genmonmaint.sh @@ -47,7 +47,7 @@ function checkmanagedpackages() { # create the virtual environment echo "Creating virtual python environmnet for genmon" $pythoncommand -m venv genenv - pythoncommand="./genenv/bin/python" + pythoncommand="$genmondir/genenv/bin/python" fi } diff --git a/startgenmon.sh b/startgenmon.sh index 78b9e20f..99e3eaa6 100755 --- a/startgenmon.sh +++ b/startgenmon.sh @@ -17,7 +17,7 @@ managedpackages=false function env_activate() { if [ "$managedpackages" = true ] ; then - source genenv/bin/activate + source $genmondir/genenv/bin/activate fi } #------------------------------------------------------------------------------- @@ -35,7 +35,7 @@ function checkmanagedpackages() { managedfile="/usr/lib/python$pythonmajor.$pythonminor/EXTERNALLY-MANAGED" if [ -f $managedfile ]; then - pythoncommand="./genenv/bin/python" + pythoncommand="$genmondir/genenv/bin/python" managedpackages=true echo "using binary: $pythoncommand" fi