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

From: Mitchell <m.att.foicica.com>
Date: Tue, 21 Apr 2020 21:34:19 -0400 (EDT)

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.
Received on Tue 21 Apr 2020 - 21:34:19 EDT

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