From 4da912637a07c6c83ff280a4bc356434ed90d4ee Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 9 Nov 2016 11:25:49 -0800 Subject: [PATCH 1/2] Add .gitignore file --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..acb75e8b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*~ +*.pyc From 747500460045bee2bcc3dbe5cd9050c88ae8b590 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 9 Nov 2016 11:26:14 -0800 Subject: [PATCH 2/2] Fix path expansion problem with sym link directories. --- technology/setup_scripts/setup_openram_freepdk45.py | 2 +- technology/setup_scripts/setup_openram_scn3me_subm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/technology/setup_scripts/setup_openram_freepdk45.py b/technology/setup_scripts/setup_openram_freepdk45.py index 6e279aff..4f55b746 100644 --- a/technology/setup_scripts/setup_openram_freepdk45.py +++ b/technology/setup_scripts/setup_openram_freepdk45.py @@ -13,7 +13,7 @@ LOCAL = "{0}/..".format(os.path.dirname(__file__)) ########################## # FreePDK45 paths -PDK_DIR="$FREEPDK45" +PDK_DIR=os.path.abspath(os.environ.get("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 diff --git a/technology/setup_scripts/setup_openram_scn3me_subm.py b/technology/setup_scripts/setup_openram_scn3me_subm.py index 452460f5..ed5331c9 100644 --- a/technology/setup_scripts/setup_openram_scn3me_subm.py +++ b/technology/setup_scripts/setup_openram_scn3me_subm.py @@ -19,8 +19,8 @@ os.environ["MGC_TMPDIR"] = "/tmp" ########################### # OpenRAM Paths - -DRCLVS_HOME="$OPENRAM_TECH/scn3me_subm/tech" +OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH")) +DRCLVS_HOME=OPENRAM_TECH+"/scn3me_subm/tech" os.environ["DRCLVS_HOME"] = DRCLVS_HOME ##########################