Message11705

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 <1519513458.63.0.467229070634.issue2343@psf.upfronthosting.co.za>
In-reply-to
Content
I don't understand some of this discussion. In particular, https://github.com/pyinstaller/pyinstaller/issues/187 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')"
foo

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')
'foo'
>>> sys.path[:2]
['', 'C:\\Jython\\2.7.2a1\\Lib']
>>> import subprocess
>>> subprocess.call(['python', '-c', 'import sys; print sys.path[:2]'])
['', 'C:\\Users\\Jeff\\Documents\\Jython\\272a1\\foo']
0
>>>

Does that mean this is fixed by work on the launcher that has happend since?
History
Date User Action Args
2018-02-24 23:04:18jeff.allensetmessageid: <1519513458.63.0.467229070634.issue2343@psf.upfronthosting.co.za>
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