OpenRAM/setpaths.sh

16 lines
386 B
Bash
Executable File

#!/bin/bash
# This is a bash utility script to set the paths to the current
# directory of OpenRAM. It must be sourced in the local directory
# like this:
# source setpaths.sh
export OPENRAM_HOME="`pwd`/compiler"
export OPENRAM_TECH="`pwd`/technology"
export PYTHONPATH=$OPENRAM_HOME
for dir in `pwd`/compiler/*
do
if [ -d $dir ]; then
export PYTHONPATH=$PYTHONPATH:$dir
fi;
done