ansys / ansys-tools-path

Library to detect Ansys products installation path
https://path.tools.docs.pyansys.com/
MIT License
3 stars 2 forks source link

Installer at non standard install location not found #204

Open janvonrickenbach opened 1 week ago

janvonrickenbach commented 1 week ago

🔍 Before submitting the issue

🐞 Description of the bug

I have an installer installed at a non-standard install location on Linux (not in LINUX_DEFAULT_DIRS), which is not found by get_available_ansys_installations. I wonder if it would make sense that also AWP_ROOT* is checked when get_available_ansys_installations is called.

📝 Steps to reproduce

Call get_available_ansys_installations when an ansys installer is installed at an non-standard install location.

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

251

🐍 Which Python version are you using?

3.10

📦 Installed packages

Does not matter
janvonrickenbach commented 1 week ago

@roosre

RobPasMue commented 1 week ago

@dipinknair could you look into this? cc @koubaa @Gryfenfer97 @germa89

koubaa commented 1 week ago

AWP_ROOT is not set by the linux installer. If it is set on linux, it is because the user set it, so we could look there in that case.

However, there is the option to use the save-ansys-path CLI to store the path before using any pyansys library that uses ansys-tools-path