get_extension_path

omni.kit.menu.file.scripts.get_extension_path(sub_directory)

Returns the normalized path by joining the given sub-directory with the extension’s base path.

Parameters

sub_directory (str) – The sub-directory to append to the base path of the extension. If empty, the base path is returned as is.

Returns

The normalized path combining the extension’s base path with the provided sub-directory.

Return type

str