
Sept. 16, 2009
10:23 a.m.
On Wed, Sep 16, 2009 at 10:21 AM, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Sridhar Ratnakumar wrote:
>>> sys.platform 'linux2'
"linux2"? What are the possible values for `sys.platform`?
This is why I usually write Python code that checks sys.platform like
if sys.platform.startswith("linux"): ...
So the condition language for the metadata needs a "startswith" operator, I think.
What about 'in' ? 'linux' in sys.platform should cover all cases
-- Greg _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | http://ziade.org | オープンソースはすごい!