mirror of https://github.com/VLSIDA/OpenRAM.git
Fix recursive import of openram
This commit is contained in:
parent
c5131cbd12
commit
9a8d693237
|
|
@ -12,8 +12,7 @@ import sys
|
||||||
try:
|
try:
|
||||||
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
||||||
except:
|
except:
|
||||||
import openram
|
OPENRAM_HOME = os.path.dirname(os.path.abspath(__file__)) + "/compiler"
|
||||||
OPENRAM_HOME = os.path.dirname(openram.__file__) + "/compiler"
|
|
||||||
|
|
||||||
if not os.path.isdir(OPENRAM_HOME):
|
if not os.path.isdir(OPENRAM_HOME):
|
||||||
assert False
|
assert False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue