Status: Accepted
Owner: pekka.klarck
Labels: Type-Enhancement Priority-Medium Target-2.7 bwic

New issue 1034 by pekka.klarck: Do not process PYTHONPATH when using Jython or IronPython
http://code.google.com/p/robotframework/issues/detail?id=1034

In RF 2.6 and earlier we process PYTHONPATH environment variable and always add items in it into Python's sys.path. This is done also when running tests on Jython or IronPython although these interpreters don't use PYTHONPATH otherwise but have JYTHONPATH and IRONPYTHONPATH instead.

The original motivation for always processing PYTHONPATH was that Jython 2.2 didn't support JYTHONPATH. With Jython 2.5 and newer that's not a problem so this legacy functionality can be removed.

The change is backwards incompatible because if someone is used PYTHONPATH with Jython or IronPython that is not going to work anymore. That should not cause too big problems for users because fixing the problem is so easy--you just need to use JYTHONPATH or IRONPYTHONPATH instead or in addition to PYTHONPATH. An alternative solution is using Robot's `--pythonpath (-P)` command line option.

Reply via email to