get_filename_without_extension#

ansys.aedt.core.generic.file_utils.get_filename_without_extension(input_file: str | Path) str#

Get the filename without its extension.

Parameters:
input_filestr or pathlib.Path

Path of the file.

Returns:
str

Name of the file without extension.

Examples

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