OK, here's one with no "random dependencies":
>>> import pyglet
>>> from distutils.version import LooseVersion
>>> LooseVersion(pyglet.version) < LooseVersion('1.1')
False
>>> LooseVersion(pyglet.version) < LooseVersion('1.2')
True
>>>
Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---