TL;DR

Jython 2.2 "fails" under Windows 7 (e.g. os.environ lookups), see http://odiexperts.com/jython-os-bug-in-windows-7

Slightly longer.

After reading http://pydev.blogspot.com/2011/12/preparing-for-pydev-230.html I was reminded how much smaller Jython 2.2 is than 2.5.x (when 2.5 came out I jumped at it), so I've used 2.2 on a couple of small projects recently as the deployment size is super tiny :-) This isn't a dig against 2.5, just a cool re-discovery.

However... I just ran a script on a Windows 7 machine and got some odd warnings/errors about "sh" "env" calls, which are obviously Unix'y. It turns out javashell.py has a list of hard coded platforms for working out the "style" of platform. I'm not the first to hit this, http://odiexperts.com/jython-os-bug-in-windows-7 has a note on this. What is the support status of Jython 2.2? Is there value in logging an issue with a patch? We can't use the 2.5 javashell.py as that expects the subprocess module. My change is fairly simple:

In _getOsType, instead of:

    if not foundType:
        foundType = "posix" # default - posix seems to vary most widely

Have:

    if not foundType:
        if 'windows' in os.lower():
            foundType = "nt"
        else:
            foundType = "posix"  # default - posix seems to vary most widely


Chris