fre.make.make_helpers module
module of helper/utility functions used in the fre make subtool
- fre.make.make_helpers.get_mktemplate_path(mk_template: str, container_flag: bool, model_root: str = None) str
This function get_mktemplate_path generates the full path to the mkmf mk_template on the bare-metal system or the container image filesystem
- Parameters:
mk_template (string) – Full path to or the mkmf mk_template filename with .mk extension
model_root (str) – Path to the root for all model install files (TO CLARIFY)
container_flag (boolean) – if True and the full path to the mk_template is not specified, return model_root+”/mkmf/templates/”+mk_template; else if True and mk_template is the filename, return mk_template
- Raises:
ValueError – Error if the mk_template file does not exist in the generated full path
- Returns:
Full path to the mkmf mk_template
- Return type:
string
Note
model_root must be specified if container_flag is True