Author jeff.allen
Recipients jeff.allen, pekka.klarck, zyasoft
Date 2018-02-24.23:04:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don't understand some of this discussion. In particular, seems to be about something else.

However, the behaviour currently is:

PS 272a1> $env:PYTHONPATH="foo"
PS 272a1> jython -c "import os; print os.getenv('PYTHONPATH')"

Of course PYTHONPATH makes no difference to the Jython path, but if you were to launch Python from within Jython, it should contribute to sys.path.

PS 272a1> jython
Jython 2.7.2a1+ (default:d74f8c2cd56f, Feb 24 2018, 17:18:53)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_151
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> os.getenv('PYTHONPATH')
>>> sys.path[:2]
['', 'C:\\Jython\\2.7.2a1\\Lib']
>>> import subprocess
>>>['python', '-c', 'import sys; print sys.path[:2]'])
['', 'C:\\Users\\Jeff\\Documents\\Jython\\272a1\\foo']

Does that mean this is fixed by work on the launcher that has happend since?
Date User Action Args
2018-02-24 23:04:18jeff.allensetmessageid: <>
2018-02-24 23:04:18jeff.allensetrecipients: + jeff.allen, pekka.klarck, zyasoft
2018-02-24 23:04:18jeff.allenlinkissue2343 messages
2018-02-24 23:04:17jeff.allencreate