Author jeff.allen
Recipients jeff.allen, k870611
Date 2019-01-05.10:38:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
You can use this:

>>> import os
>>> os._name

It is reasonable to say that the "platform" is Java, and so that is what we return as But many programs actually want to know what the file system is like, so practicality suggests really ought to tell you that. Unfortunately, practicality came too late to change things, but we added os._name to compensate. Portable code looks something like:

if'nt' or ('java' and os._name=='nt'):
    # Do windows stuff
Date User Action Args
2019-01-05 10:38:29jeff.allensetmessageid: <>
2019-01-05 10:38:29jeff.allensetrecipients: + jeff.allen, k870611
2019-01-05 10:38:29jeff.allenlinkissue2726 messages
2019-01-05 10:38:29jeff.allencreate