Thread overview
How can I append PATH to environment["PATH"] in runtime?
Mar 13, 2020
Marcone
Mar 14, 2020
Marcone
March 13, 2020
environment["PATH"] ~= r";D:\folder\"; // Error
March 13, 2020
On 3/13/20 2:08 AM, Marcone wrote:
> environment["PATH"] ~= r";D:\folder\"; // Error

Did you try the long way?

environment["PATH"] = environment["PATH"] ~ r";D:\folder\";

It would be nice to have environment support opIndexOpAssign for concatenation.

-Steve
March 14, 2020
On Friday, 13 March 2020 at 13:28:01 UTC, Steven Schveighoffer wrote:
> On 3/13/20 2:08 AM, Marcone wrote:
>> environment["PATH"] ~= r";D:\folder\"; // Error
>
> Did you try the long way?
>
> environment["PATH"] = environment["PATH"] ~ r";D:\folder\";
>
> It would be nice to have environment support opIndexOpAssign for concatenation.
>
> -Steve

Very good! Work very well