Sorry to harp on this again, but if I use java.lang.System.getPropery("
os.name"), it will returnu'Windows XP'
whereas sys.platform in CPython will return
In code which checks for platforms, this means that everything has to be
rewritten for jython. Would it be possible to have sys.platform to return
the same value as Cpython?
On Thu, Aug 13, 2009 at 5:05 PM, Eric Widhalm <eric@...> wrote:
> That's not cool.
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.platform
> At 02:27 PM 8/13/2009, william ratcliff wrote:
> I have to go to the java side--thanks!
> Btw--just a quick check, are all strings which come from java unicode?
> Thanks again,
> On Thu, Aug 13, 2009 at 4:12 PM, Jeff Emanuel <jemanuel@...> wrote:
> java.lang.System.getProperty('os.name ')
> william ratcliff wrote:
> Another question:
> In Cpython, I usually use sys.platform to test whether I'm running on
> windows, linux, or macos. In jython, sys.platform returns the version of
> java that it is running under--is there an equivalent command to determine
> the operating system?