Evgeny Shvarov · Feb 8, 2021

What is the macro or internal function call for lib path for the IRIS installation?

Hi folks!

Each IRIS installation has a /lib folder which is intended for 3rd-party libraries being used in the solution.

For IRIS installation the typical path is:


In ZPM the shortcut is ${libdir}.

What is the macro or internal function to obtain it programmatically?

Product version: IRIS 2020.3
0 154
Discussion (5)1
Log in or sign up to continue

write $replace(##class(%File).ManagerDirectory(),"mgr","lib")

independent of OS!

As is 

USER> w $system.Util.InstallDirectory()_"lib"

There's also a LibPath entry in IRIS.cpf, but I'm not sure it's the same. But you can get it:

%SYS> do ##class(Config.config).Get(.props)
%SYS> write props("LibPath")

Unfortunately on the IRIS server I'm working with it's empty ...

I was searching this but looked for ManagerDirectory  instead of InstallDirectory