From: Jeff A. <ja...@fa...> - 2018-08-28 22:58:13
|
HI Stefan: I'm rationalising the Jython main program and the options parser, and I'm looking at the code added by this change: https://hg.python.org/jython/rev/03f4808038f8#l3.8 which is clearly a work-around you seemed to intend be resolved another way eventually. It deals as a specific case with the option-J-Dcpython_cmd=python, which ends up as a Jython argument when using pip with --global-options. (That's if I've understood correctly.) Am I right in thinking this is a specific case of a general problem when Java options mix with Python ones (observed here in 2.7.1): PS startup2> jython -E -J-Dtest=TEST Unknown option: J-Dtest=TEST usage: ... Since that time, and with an unconnected motive, I've changed the Windows launcher so that it shuffles recognisable Python options and Java options (-J<stuff>) to their proper places. (https://hg.python.org/jython/rev/b556dcdf8258) In the tip now, I get: PS jython-trunk> dist\bin\jython -E -J-Dtest=TEST -c "import sys; print sys.registry.getProperty('test')" TEST Do you think this means I can I safely omit the special case from the options parser? Jeff -- Jeff Allen |