How to retrieve the value of Environment Variables using OpenTools API?

148 views Asked by At

I added some new environment variables in the IDE setup:

Tools > Options > Environment Options > Environment Variables > User Overrides

Those are just some paths like: $(MYPROJ_ROOT)\Source.

How can I retrieve one of them using the OpenTools API?

The IDE that I'm using is Delphi 10.2 Tokyo.

1

There are 1 answers

0
Uwe Raabe On BEST ANSWER

The IOTAServices interface offers a function ExpandRootMacro just for this purpose.