pycasx.cli.utils.find_fgfs
Find FlightGear and the corresponding root data directory.
Module Contents
Functions
|
Find the fully resolved path to the FlightGear executable. |
- pycasx.cli.utils.find_fgfs.find_fgfs() pathlib.Path
- pycasx.cli.utils.find_fgfs.find_fgfs(with_root: Literal[False]) pathlib.Path
- pycasx.cli.utils.find_fgfs.find_fgfs(with_root: Literal[True]) tuple[pathlib.Path, pathlib.Path]
Find the fully resolved path to the FlightGear executable.
- Parameters:
with_root (bool) – If true, return the root data directory as well.
- Returns:
- The fully resolved path to the FlightGear
executable and the root data directory if with_root is true.
- Return type:
Path | tuple[Path, Path]
- Raises:
NotImplementedError – If the platform is not supported.