Issue1720

classification
Title: Support environment variable flags
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone: Jython 2.7.1
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: amak, fwierzbicki, pjenvey, zyasoft
Priority: normal Keywords:

Created on 2011-03-19.20:05:29 by pjenvey, last changed 2015-04-25.20:13:39 by zyasoft.

Messages
msg6442 (view) Author: Philip Jenvey (pjenvey) Date: 2011-03-19.20:05:28
Historically we didn't support things like PYTHONPATH because Java completely discouraged use of environment variables. They are obviously useful, however, and we do support JYTHONPATH now. We should add support for env vars for all the command line options, like PYTHONUSERSITE, PYTHONIOENCODING, etc. I suppose they would be JYTHONUSERSITE
msg6871 (view) Author: Alan Kennedy (amak) Date: 2012-03-19.20:50:28
Copied from issue #1263813

"""
I'd like an option similar to CPython's $PYTHONSTARTUP.
By analogy to $PYTHONPATH -> -Dpython.path, the logical
choice is a system property "python.startup".
"""
msg8542 (view) Author: Jim Baker (zyasoft) Date: 2014-05-22.01:30:26
Should revisit in light of support of PYTHONIOENCODING etc
msg9961 (view) Author: Jim Baker (zyasoft) Date: 2015-04-25.20:13:39
Consider also supporting PYTHONPATH for Jython, in addition to JYTHONPATH, even if site-packages makes this less important. If so, we should also add some sort of compatibility setting. pyenv, virtualenv, and similar tools are the right way to isolate Python implementations. Likewise -E is helpful too.

Also, all environment variables should have property correspondence per what Alan suggested in msg6871
History
Date User Action Args
2015-04-25 20:13:39zyasoftsetmessages: + msg9961
milestone: Jython 2.7.1
2014-05-22 01:30:26zyasoftsetnosy: + zyasoft
messages: + msg8542
2013-02-27 17:58:12fwierzbickisetpriority: normal
resolution: remind
versions: + Jython 2.7
2012-03-19 21:22:47fwierzbickisetnosy: + fwierzbicki
2012-03-19 20:50:28amaksetnosy: + amak
messages: + msg6871
2011-03-19 20:05:29pjenveycreate