Improve global and code structure using modules.

Comment and reorganize globals.py
Tests consistently use globals module for OPTions.
Add characterizer as module support.
Modify unit tests to reload new characterizer for ngspice/hspice.
Enable relative and absolute config file arguments so you can run
openram from anywhere on any config file.
This commit is contained in:
Matt Guthaus
2017-11-16 13:52:58 -08:00
parent 347f1f97fd
commit 88740c107f
41 changed files with 152 additions and 182 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ def warning(str):
def info(lev, str):
OPTS = globals.get_opts()
from globals import OPTS
if (OPTS.debug_level >= lev):
frm = inspect.stack()[1]
mod = inspect.getmodule(frm[0])