Module for generic platform information: platform.py

John Farrell jfarrell at mincom.com
Wed Oct 27 20:12:57 EDT 1999


"M.-A. Lemburg" wrote:
> "Barry A. Warsaw" wrote:
> >
> > Very neat:
> >
> > % jpython /tmp/platform.py
> > java1.2.1
> >
> > Probably sufficient (certainly appropriate) for the JPython platform,
> > since nothing else matters when you're running on Java right? :)
> 
> Well, there must be more infos lying around in the JRE :-)
> 
> Does the JRE provide some kind of uname interface which I could hook
> into a special platform.py function ? It would probably be interesting
> to have some information about JVM version and vendor.

I've attached an image of an inspection tool I happened to be running
which lists all Java system properties. You can get any value in the
right column by calling System.getProperty() with the string parameter
in the left column.

John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: props.gif
Type: image/gif
Size: 13845 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19991028/80eebf86/attachment.gif>


More information about the Python-list mailing list