Closed dipinknair closed 9 months ago
after running
save-ansys-path --name mechanical /path/to/.workbench
running ansys-mechanical console script ansys-mechanical -r 241 --exit -i test.py
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()
get_mechanical_path()
we can extend ATP to look for ansys_inc under the home drive
ansys_inc
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()