[bugfix] OPENFPGA_PATH location

This commit is contained in:
Ganesh Gore 2021-02-08 11:57:15 -07:00
parent c35cf72489
commit 12e4fa07a2
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,13 @@
#author : Ganesh Gore <ganesh.gore@utah.edu> #author : Ganesh Gore <ganesh.gore@utah.edu>
#============================================================================== #==============================================================================
export OPENFPGA_PATH=$(dirname $(readlink -f $0)) if [ -z $OPENFPGA_PATH ]; then
echo "OPENFPGA_PATH variable not found"
export OPENFPGA_PATH=$(pwd);
echo "Setting OPENFPGA_PATH=${OPENFPGA_PATH}"
else
echo "OPENFPGA_PATH=${OPENFPGA_PATH}"
fi
export OPENFPGA_SCRIPT_PATH="${OPENFPGA_PATH}/openfpga_flow/scripts" export OPENFPGA_SCRIPT_PATH="${OPENFPGA_PATH}/openfpga_flow/scripts"
export OPENFPGA_TASK_PATH="${OPENFPGA_PATH}/openfpga_flow/tasks" export OPENFPGA_TASK_PATH="${OPENFPGA_PATH}/openfpga_flow/tasks"
if [ -z $PYTHON_EXEC ]; then export PYTHON_EXEC="python3"; fi if [ -z $PYTHON_EXEC ]; then export PYTHON_EXEC="python3"; fi