Jason Tackaberry wrote: > Duncan Webb wrote: >> It's there and installed but >> import kaa.metadata.version >> if kaa.metadata.version.VERSION < 0.6: >> doesn't work. >> > > Using a string: > > if kaa.metadata.version.VERSION < "0.6" > > This is kind of lame. I think each module should expose version from > __init__.py: > > from version import VERSION as version > > This way it's just: > > import kaa.metadata > if kaa.metaddata.version < "0.6": ....
I would prefer kaa.metadata.VERSION because it is a constant value. Dischi -- Communism is man's exploitation of man. Capitalism is just the opposite.
pgpQfRpWoWbKO.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
