Re: [code] How to get system path in textadept?

From: bai bai <bbbslayer.att.fastmail.com>
Date: Wed, 22 Apr 2020 09:57:03 +0800

Thank you, I use macOS version and change the way to launch Textadept.
I use "open -a /Applications/Textadept.app", the path of ta is the same
as system now.

Open Textadept.app directly always use the default path, it maybe a GUI
application limit.

On 22 Apr 2020, at 9:34, Mitchell wrote:

> Hi,
>
> On Wed, 22 Apr 2020, bai bai wrote:
>
>> In textadept, the path variable is different from system path, it is
>> always
>> "/usr/bin:/bin:/usr/sbin:/sbin".
>>
>> Is there a way to add path or sync the path variable with system
>> path?
>
> Textadept inherits whatever the value of $PATH is when it is launched.
> I don't think you can modify the environment of a running process, but
> you can pass an environment to `os.spawn()` that has whatever $PATH
> you want if that helps.
>
> Cheers,
> Mitchell
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to
> code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 21 Apr 2020 - 21:57:03 EDT

This archive was generated by hypermail 2.2.0 : Wed 22 Apr 2020 - 06:27:50 EDT