fre.make.make_helpers module

this holds functions used across various parts of fre/make subtools

fre.make.make_helpers.get_mktemplate_path(mk_template: str, container_flag: bool, model_root: str | None = None) str

Save the full path to the mk_template.

Parameters:
  • mk_template (string) – Full path or just the name of the mk_template

  • model_root (str) – Path to the root for all model install files

  • container_flag (boolean) – True/False if it is a container build

Raises:

ValueError – Error if the mk_template does not exist

Returns:

Full path to the mk_template

Return type:

string

Note

When container_flag is False, model_root is not used. When container_flag is True, model_root must be defined.