Message11705
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? |
|
Date |
User |
Action |
Args |
2018-02-24 23:04:18 | jeff.allen | set | messageid: <1519513458.63.0.467229070634.issue2343@psf.upfronthosting.co.za> |
2018-02-24 23:04:18 | jeff.allen | set | recipients:
+ jeff.allen, pekka.klarck, zyasoft |
2018-02-24 23:04:18 | jeff.allen | link | issue2343 messages |
2018-02-24 23:04:17 | jeff.allen | create | |
|