Get installation directory path

Debdatta_Sen
Debdatta_Sen
Altair Employee
edited October 2020 in Community Q&A

Hi all,

 

Just like HM APIs such as hm_info, is there a way to find out which directory compose is installed in?

I do not want to look up an environement variable, unless that is the only way.

Does anyone have any tips for me?

 

Thanks,
Deb

Tagged:

Answers

  • robertavarela
    robertavarela New Altair Community Member
    edited June 2020

    Deb,

     

    In Compose v2020, you can use composedir function and in previous versions you can use getenv('ALTAIR_HOME') to get the environment variable that points to Compose installation folder.

    image.png.62427f49f9579f53b2ee765e95b21975.png

    Regards,

     

    Roberta