From 36e3a08fcc176df893ccfeec130c1e0d20e75fbb Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 10 Nov 2016 09:35:06 -0800 Subject: [PATCH] Override spice model dir by environment variable in FREEPDK as well --- technology/setup_scripts/setup_openram_freepdk45.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/technology/setup_scripts/setup_openram_freepdk45.py b/technology/setup_scripts/setup_openram_freepdk45.py index 6488d604..2476c953 100644 --- a/technology/setup_scripts/setup_openram_freepdk45.py +++ b/technology/setup_scripts/setup_openram_freepdk45.py @@ -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