Fix recursive import of openram

This commit is contained in:
Eren Dogan 2022-11-21 15:38:49 -08:00
parent c5131cbd12
commit 9a8d693237
1 changed files with 1 additions and 2 deletions

View File

@ -12,8 +12,7 @@ import sys
try:
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
except:
import openram
OPENRAM_HOME = os.path.dirname(openram.__file__) + "/compiler"
OPENRAM_HOME = os.path.dirname(os.path.abspath(__file__)) + "/compiler"
if not os.path.isdir(OPENRAM_HOME):
assert False