Jason Tackaberry wrote: > On Wed, 2008-03-19 at 10:57 +0100, Dirk Meyer wrote: >> Good question. You can't :) It is possible for all kaa modules but not >> for base. Jason: any idea how to fix this? Using version.py does not >> help in this case. > > I suppose we ought to fix this. kaa.version right now just has: > > from distribution.version import Version > > And then each submodule imports kaa.version. Why not have each > submodule import kaa.distribution.version directly? Then have > kaa.version a generated module like all the other submodules.
Done. Duncan: you can now test the kaa base version with import kaa.version try: if kaa.version.VERSION < 0.4: print 'too old' except: # < 2008-03-20 print 'too old' It would be nice to have a way to check the svn revision, too. Dischi -- All bombs with electronic timing devices are fitted with large red readouts so you know exactly when they're going to go off.
pgp5hfa2NTh3u.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel