|
| 1 | +# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates. |
| 2 | +# SPDX-License-Identifier: MIT |
| 3 | +# |
| 4 | +# |
| 5 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | +# of this software and associated documentation files (the "Software"), to deal |
| 7 | +# in the Software without restriction, including without limitation the rights |
| 8 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | +# copies of the Software, and to permit persons to whom the Software is |
| 10 | +# furnished to do so, subject to the following conditions: |
| 11 | +# |
| 12 | +# The above copyright notice and this permission notice shall be included in all |
| 13 | +# copies or substantial portions of the Software. |
| 14 | +# |
| 15 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 21 | +# SOFTWARE. |
| 22 | + |
| 23 | +""" |
| 24 | +Tools to find/cache installed Ansys products. |
| 25 | +
|
| 26 | +WARNING: This is not concurrent-safe (multiple python processes might race on this data.) |
| 27 | +""" |
| 28 | + |
| 29 | +from ansys.tools.common.path.path import ( |
| 30 | + LOG, |
| 31 | + SETTINGS_DIR, |
| 32 | + SUPPORTED_ANSYS_VERSIONS, |
| 33 | + change_default_ansys_path, # deprecated |
| 34 | + change_default_dyna_path, |
| 35 | + change_default_mapdl_path, |
| 36 | + change_default_mechanical_path, |
| 37 | + clear_configuration, |
| 38 | + find_ansys, # deprecated |
| 39 | + find_dyna, |
| 40 | + find_mapdl, |
| 41 | + find_mechanical, |
| 42 | + get_ansys_path, # deprecated |
| 43 | + get_available_ansys_installations, |
| 44 | + get_dyna_path, |
| 45 | + get_latest_ansys_installation, |
| 46 | + get_mapdl_path, |
| 47 | + get_mechanical_path, |
| 48 | + get_saved_application_path, |
| 49 | + save_ansys_path, # deprecated |
| 50 | + save_dyna_path, |
| 51 | + save_mapdl_path, |
| 52 | + save_mechanical_path, |
| 53 | + version_from_path, |
| 54 | +) |
| 55 | + |
| 56 | +__all__ = [ |
| 57 | + "LOG", |
| 58 | + "SETTINGS_DIR", |
| 59 | + "SUPPORTED_ANSYS_VERSIONS", |
| 60 | + "change_default_mapdl_path", |
| 61 | + "change_default_mechanical_path", |
| 62 | + "change_default_dyna_path", |
| 63 | + "clear_configuration", |
| 64 | + "find_mapdl", |
| 65 | + "find_mechanical", |
| 66 | + "find_dyna", |
| 67 | + "get_available_ansys_installations", |
| 68 | + "get_latest_ansys_installation", |
| 69 | + "get_mapdl_path", |
| 70 | + "get_mechanical_path", |
| 71 | + "get_saved_application_path", |
| 72 | + "get_dyna_path", |
| 73 | + "save_mapdl_path", |
| 74 | + "save_mechanical_path", |
| 75 | + "save_dyna_path", |
| 76 | + "version_from_path", |
| 77 | + "change_default_ansys_path", |
| 78 | + "find_ansys", |
| 79 | + "get_ansys_path", |
| 80 | + "save_ansys_path", |
| 81 | +] |
0 commit comments