The ``path`` package
========================
.. py:module:: ansys.tools.common.path
Summary
-------
.. py:currentmodule:: path
.. tab-set::
.. tab-item:: Subpackages
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~ansys.tools.common.path.applications`
- Application plugin for the Ansys path tool.
.. tab-item:: Submodules
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~ansys.tools.common.path.path`
- Module for installation path retrieval.
* - :py:obj:`~ansys.tools.common.path.save`
- Convenience CLI to save the path for an Ansys application in the configuration.
.. tab-item:: Functions
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~change_default_ansys_path`
- Deprecated. Use ``change_default_mapdl_path`` instead.
* - :py:obj:`~change_default_dyna_path`
- Change your default Ansys LS-DYNA path.
* - :py:obj:`~change_default_mapdl_path`
- Change your default Ansys MAPDL path.
* - :py:obj:`~change_default_mechanical_path`
- Change your default Mechanical path.
* - :py:obj:`~clear_configuration`
- Clear the entry of the specified product in the configuration file.
* - :py:obj:`~find_ansys`
- Obsolete method. Use ``find_mapdl`` instead.
* - :py:obj:`~find_dyna`
- Search for the Ansys LS-DYNA path within the standard install location.
* - :py:obj:`~find_mapdl`
- Search for the Ansys MAPDL path within the standard install location.
* - :py:obj:`~find_mechanical`
- Search for the Ansys Mechanical path in the standard installation location.
* - :py:obj:`~get_ansys_path`
- Deprecated. Use ``get_mapdl_path`` instead.
* - :py:obj:`~get_available_ansys_installations`
- Get a dictionary of available Ansys unified installation versions with their base paths.
* - :py:obj:`~get_dyna_path`
- Acquires the Ansys LS-DYNA path from a cached file or user input.
* - :py:obj:`~get_latest_ansys_installation`
- Return a tuple with the latest Ansys installation version and its path.
* - :py:obj:`~get_mapdl_path`
- Acquires the Ansys MAPDL path.
* - :py:obj:`~get_mechanical_path`
- Acquires the Ansys Mechanical path.
* - :py:obj:`~get_saved_application_path`
- Get the saved path for a specific application from the configuration file.
* - :py:obj:`~save_ansys_path`
- Deprecated. Use ``save_mapdl_path`` instead.
* - :py:obj:`~save_dyna_path`
- Find Ansys LS-DYNA's path or query the user.
* - :py:obj:`~save_mapdl_path`
- Find the Ansys MAPDL's path or query the user.
* - :py:obj:`~save_mechanical_path`
- Find the Mechanical path or query the user.
* - :py:obj:`~version_from_path`
- Extract the product version from a path.
.. tab-item:: Constants
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~LOG`
-
* - :py:obj:`~SETTINGS_DIR`
-
* - :py:obj:`~SUPPORTED_ANSYS_VERSIONS`
-
.. toctree::
:titlesonly:
:maxdepth: 1
:hidden:
applications
.. toctree::
:titlesonly:
:maxdepth: 1
:hidden:
path
save
Description
-----------
Tools to find or cache installed Ansys products.
.. warning::
This is not concurrent-safe. (Multiple Python processes might race on this data.)
Module detail
-------------