get_rom_directory#

TwinModel.get_rom_directory(rom_name)#

Get the working directory path for a ROM in the twin model.

Parameters:
rom_namestr

Name of the ROM. To get a list of available ROMs, see the pytwin.TwinModel.tbrom_names attribute.

Raises:
TwinModelError:

If TwinModel object does not include any TBROMs. If the provided ROM name is not available.

Examples

>>> from pytwin import TwinModel
>>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin')
>>> model.get_rom_directory(model.tbrom_names[0])