ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
423 stars 120 forks source link

Outdated `CONFIG_FILE` #3377

Open germa89 opened 1 month ago

germa89 commented 1 month ago

If you uninstall your MAPDL version, and then install a new version, PyMAPDL does not update the value in CONFIG_FILE.

If the executable path in that file is not valid, we should probably delete it, raise a better exception, or reuse the default methods to re-detect MAPDL. Since the user does not set the value in that file in most of the cases (although he can using save_ansys_path), I guess the best is to reset it and loop for another installation.

germa89 commented 1 month ago

The CONFIG_FILE management is now delegated to ansys-tools-path hence we need to make sure we are resetting that config file (ours does not exist anymore).