Allow user to pass code generation input to Makefile
This commit is contained in:
@@ -11,7 +11,7 @@ def main(types_file: Path | None):
|
||||
dbl_list_datatypes: Dict[CDataType, DblListData] = {}
|
||||
array_datatypes: Dict[CDataType, ArrayData] = {}
|
||||
|
||||
if types_file is not None:
|
||||
if types_file is not None and types_file.is_file() and "json" in types_file.suffix.lower():
|
||||
with types_file.open("r") as infile:
|
||||
datatypes = json.load(infile)
|
||||
dbl_list_data = datatypes.get(DBL_LIST_DATA)
|
||||
|
||||
Reference in New Issue
Block a user