after running
save-ansys-path --name mechanical /path/to/.workbench
running ansys-mechanical console script
ansys-mechanical -r 241 --exit -i test.py
gives the following error:
ValueError: invalid literal for int() with base 10: ''
This is because we always use find_mechanical, which looks for mechanical in default locations. If the user saved the location using ansys.tools.path, it should use get_mechanical_path()