Override spice model dir by environment variable in FREEPDK as well

This commit is contained in:
Matt Guthaus 2016-11-10 09:35:06 -08:00
parent 4f90308c92
commit 36e3a08fcc
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ os.environ["MGC_TMPDIR"] = "/tmp"
DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre"
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
try:
SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
except:
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
##########################
#Paths required for OPENRAM to function