core.module_management.find_actual_module_name¶
- core.module_management.find_actual_module_name(module_name)¶
Because modules can have different flavours, the name of the module does not always match the name of the file defining it. For instance, FP module can define two flavours, L1 and L2, that may be chosen from like this: FP|L1 and FP|L2. In this case, the file name corresponding to FP|L1 should be FP_L1.py.
Note: if a module defines different flavours, the flavour has to be specified.
- Parameters:
module_name (string) – In the form “FP” or “FP|L1”.
- Returns:
name_base (string) – the base name of the module, i.e. ‘FP’ or “CM”.
name_file (string) – the file name in which the definition of the module lies, for instance “FP_L1” or “CM”.