TTMSMCPClientTransportSTDIO.Env Property
Environment variables made available to the server process, as
Name=Valuelines.
API unit family: TMS.MCP.Client.Transport.STDIO
Declaring type: TTMSMCPClientTransportSTDIO
Type: TStringList
Syntax
property Env: TStringList;
Remarks
The transport creates this list and releases it, so fill the existing instance rather than assigning a new one. Read before the process is launched, so changes made afterwards only take effect on the next Start. How the entries reach the child differs per platform. Some platforms apply them to the launching application's own environment, which the child then inherits, so the values stay set in that application after the transport stops; others hand the list to the child as its complete environment, in which case a variable the server needs but that is not listed here is not available to it. On platforms that launch the process through a spawn call the list is currently not applied at all and the child inherits the launching application's environment unchanged.