mirror of https://github.com/VLSIDA/OpenRAM.git
Organize top-level files into subdirs.
This commit is contained in:
parent
5aa92a6549
commit
7100d6f904
|
|
@ -218,16 +218,13 @@ def setup_paths():
|
||||||
except:
|
except:
|
||||||
debug.error("$OPENRAM_HOME is not properly defined.",1)
|
debug.error("$OPENRAM_HOME is not properly defined.",1)
|
||||||
debug.check(os.path.isdir(OPENRAM_HOME),"$OPENRAM_HOME does not exist: {0}".format(OPENRAM_HOME))
|
debug.check(os.path.isdir(OPENRAM_HOME),"$OPENRAM_HOME does not exist: {0}".format(OPENRAM_HOME))
|
||||||
|
|
||||||
debug.check(os.path.isdir(OPENRAM_HOME+"/gdsMill"),
|
# Add all of the submodules to the python path
|
||||||
"$OPENRAM_HOME/gdsMill does not exist: {0}".format(OPENRAM_HOME+"/gdsMill"))
|
for subdir in ["gdsMill", "tests", "router", "modules", "layout", "pgates"]:
|
||||||
sys.path.append("{0}/gdsMill".format(OPENRAM_HOME))
|
full_path = "{0}/{1}".format(OPENRAM_HOME,subdir)
|
||||||
debug.check(os.path.isdir(OPENRAM_HOME+"/tests"),
|
debug.check(os.path.isdir(full_path),
|
||||||
"$OPENRAM_HOME/tests does not exist: {0}".format(OPENRAM_HOME+"/tests"))
|
"$OPENRAM_HOME/{0} does not exist: {1}".format(subdir,full_path))
|
||||||
sys.path.append("{0}/tests".format(OPENRAM_HOME))
|
sys.path.append("{0}".format(full_path))
|
||||||
debug.check(os.path.isdir(OPENRAM_HOME+"/router"),
|
|
||||||
"$OPENRAM_HOME/router does not exist: {0}".format(OPENRAM_HOME+"/router"))
|
|
||||||
sys.path.append("{0}/router".format(OPENRAM_HOME))
|
|
||||||
|
|
||||||
if not OPTS.openram_temp.endswith('/'):
|
if not OPTS.openram_temp.endswith('/'):
|
||||||
OPTS.openram_temp += "/"
|
OPTS.openram_temp += "/"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue