From 6fe54c9c76a8e7881897511d9d8f69c8229b96ef Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sun, 6 Nov 2022 21:56:40 -0800 Subject: [PATCH] Make sram_compiler.py use $OPENRAM_HOME if library isn't installed --- sram_compiler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sram_compiler.py b/sram_compiler.py index 96c195ca..4ae4a819 100644 --- a/sram_compiler.py +++ b/sram_compiler.py @@ -16,9 +16,13 @@ a LEF (.lef) file for preliminary P&R (real one should be from layout) a Liberty (.lib) file for timing analysis/optimization """ +import os import sys import datetime -import openram +try: + import openram +except: + sys.path.append(os.getenv("OPENRAM_HOME")) import globals as g (OPTS, args) = g.parse_args()