Thread overview | |||||
---|---|---|---|---|---|
|
March 13, 2020 How can I append PATH to environment["PATH"] in runtime? | ||||
---|---|---|---|---|
| ||||
environment["PATH"] ~= r";D:\folder\"; // Error |
March 13, 2020 Re: How can I append PATH to environment["PATH"] in runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | 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 Re: How can I append PATH to environment["PATH"] in runtime? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | 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
|
Copyright © 1999-2021 by the D Language Foundation