realtwin.func_lib.is_sumo_installed

realtwin.func_lib.is_sumo_installed(*, ext: str = 'exe', sel_dir: list = None, verbose: bool = True) bool | list[source]

Check if SUMO is installed on the system.

Parameters:
  • ext (str) – The extension of the executable. Defaults to “exe” for executable files.

  • sel_dir (list) – A list of directories to search for the SUMO executable. Defaults to None.

  • verbose (bool) – Whether to print the process info. Defaults to True.

Example

>>> import realtwin as rt
>>> rt.is_sumo_installed(ext="exe", sel_dir=["C:/Program Files/SUMO/bin"])
>>> True
Raises:

Exception – Unsupported OS, could not find SUMO executable

Returns:

a list of installed versions, False otherwise.

Return type:

bool or list