|
RE: [Jython-users] sys.platform problems
From: Marcel Opsteegh <Marcel.Opsteegh@no...> - 2002-08-08 15:47
|
Morgan,
from java.lang import System
System.getProperty('os.name')
Ragards,
Marcel.
-----Original Message-----
From: mvlinton@... [mailto:mvlinton@...]
Sent: Thursday, August 08, 2002 17:13
To: jython-users@...
Subject: [Jython-users] sys.platform problems
Hi everyone,
I have just finished a mjor project using Jython and have one last thing to
fix. The program that I am using uses "sys.platform" to determine which
operating system is being used by the user. In Python this usually returns
"win32" for windows. Unfortunately on my machine it returns "java1.3.1_03".
I was wondering how I can either set sys.platform to return win32, or what I
could use as an alternative to discover the platform running on the users
machine. Thanks in advance.
- Morgan
|
| Thread | Author | Date |
|---|---|---|
| RE: [Jython-users] sys.platform problems | Marcel Opsteegh <Marcel.Opsteegh@no...> |