Add checks for valid OPENRAM_HOME and OPENRAM_TECH directories and subdirs

This commit is contained in:
Matt Guthaus
2017-05-12 14:56:31 -07:00
parent cffcd46f6d
commit b16dd80088
2 changed files with 19 additions and 4 deletions
+6
View File
@@ -9,6 +9,12 @@ import sys
# 2 = verbose
# n = custom setting
def check(check,str):
(frame, filename, line_number, function_name, lines,
index) = inspect.getouterframes(inspect.currentframe())[1]
if not check:
print "ERROR: file ", os.path.basename(filename), ": line ", line_number, ": ", str
sys.exit(-1)
def error(str,return_value=None):
(frame, filename, line_number, function_name, lines,