Dirk Meyer wrote:
> 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

Thanks dischi, works a treat.

Do you have time to do a kaa release? AFAICT only base is needed.

> 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.

Could check for the BASE revision number, this is how I display the 
revision in the splash screen and log.

I thought of using subversion's python bindings but maybe not everyone 
has these installed.

Duncan

-------------------------------------------------------------------------
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

Reply via email to