Adding filename check!
Incredibly useful for Ip/PDK setup process. Usually, you fail on this deep inside a flow, sometimes after 20 minutes! This is an easy but huguely impactful check.
@@ -81,6 +81,11 @@ def schema_path(filename):
relpath = varmatch.group(2)
filename = varpath + relpath
+ #Check Path Validity
+ if not os.path.exists(filename):
+ print("FATAL ERROR: File/Dir not found:", filename)
+ sys.exit()
+
return filename
def schema_istrue(value):
