normalize_path#

ansys.aedt.core.generic.file_utils.normalize_path(input_dir: str | Path, sep: str = None) str#

Normalize path separators.

Parameters:
input_dirstr or pathlib.Path

Path to normalize.

sepstr, optional

Separator.

Returns:
str

Path normalized to new separator.

Examples

>>> from ansys.aedt.core.generic.file_utils import normalize_path
>>> normalize_path(r"C:\Projects\Motor\test.aedt")