Re: [code] [textadept] osx_env.sh and spawn environment

From: Mitchell <m.att.foicica.com>
Date: Tue, 19 Jan 2016 20:47:55 -0500 (EST)

Hi Robert,

On Mon, 18 Jan 2016, Robert Gieseke wrote:

> Hi Mitchell,
>
> Am 17/01/16 um 21:59 schrieb Mitchell:
>>> I think the change in lspawn around Textadept 8.2 broke the handling of
>>> the path on OS X through the osx_en.sh script. In 8.1 it still works.
>>
>> How are you calling `spawn()`? Textadept 8.3's `spawn()` allows an
>> optional parameter for specifying an environment (which may overwrite any
>> PATH in `osx_env.sh`).
>
> I think the problem is that spawn is not inheriting the environment
> variables set in osx_env.sh.
>
> If I run os.execute("python --version > ~/test.txt") I get the Python
> version I installed in /usr/local/bin, with `spawn` (through the run
> command) I get the OS X default Python /usr/bin. (Tested in 8.5)

I don't have access to a Mac OSX machine right now, but I've committed a
fix[1] that may work. It will be in tonight's nightly. Please give it a
try when you get the chance.

Cheers,
Mitchell

[1]: http://foicica.com/hg/lspawn/rev/5c1c2450119d

-- 
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 19 Jan 2016 - 20:47:55 EST

This archive was generated by hypermail 2.2.0 : Wed 20 Jan 2016 - 06:36:11 EST