Change setup scripts to be dir independent

This commit is contained in:
Matt Guthaus
2016-11-09 09:32:36 -08:00
parent b04e63dd65
commit 8b86ee3e2e
2 changed files with 19 additions and 17 deletions
@@ -11,22 +11,23 @@ TECHNOLOGY = "freepdk45"
LOCAL = "{0}/..".format(os.path.dirname(__file__))
##########################
# FreePDK 45 paths
# DON'T DELETE THESE
PDK_DIR="/mada/software/techfiles/FreePDK45"
# FreePDK45 paths
PDK_DIR="$FREEPDK45"
os.environ["PDK_DIR"] = PDK_DIR
os.environ["SYSTEM_CDS_LIB_DIR"] = "{0}/ncsu_basekit/cdssetup".format(PDK_DIR)
os.environ["CDS_SITE"] = PDK_DIR
os.environ["MGC_TMPDIR"] = "/tmp"
###########################
#Openram Paths
# DON'T DELETE THESE
DRCLVS_HOME="/mada/software/techfiles/FreePDK45-1.4/ncsu_basekit/techfile/calibre"
#OpenRAM Paths
DRCLVS_HOME= "$FREEPDK45/ncsu_basekit/techfile/calibre"
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
##########################
#Paths required for OPENRAM to function
sys.path.append("{0}/{1}".format(LOCAL,TECHNOLOGY))