Re: [code] [textadept] and spawn environment

From: Robert Gieseke <>
Date: Mon, 18 Jan 2016 00:02:38 +0100

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 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 ``).

I think the problem is that spawn is not inheriting the environment
variables set in

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)

>> With this change, maybe a better way could be to handle the path without
>> such a script, but by setting a default path as a Lua global?
> Yes, that may work better, but first let's figure out what's going wrong.

Agreed :-)


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 17 Jan 2016 - 18:02:38 EST

This archive was generated by hypermail 2.2.0 : Mon 18 Jan 2016 - 06:53:54 EST