Shortcuts

mmengine.utils.get_installed_path

mmengine.utils.get_installed_path(package)[source]

Get installed path of a package.

Parameters:

package (str) – Name of the package.

Returns:

The path to the installed package.

Return type:

str

Example

>>> get_installed_path('mmcls')
'.../lib/python3.10/site-packages/mmcls'