At Thursday 7/12/2006 22:49, Jim Tittsler wrote:

Is there a standard recipe for getting the subversion revision number
into my Python-based application each time I package it up with
distutils?  (Not just the package name, but also a string that I will
display in my app's "About" dialog.)

Under CVS, you use keywords like $Id$, $Author$, $Revision$ etc inside your code, they get expanded like this:

__version__ = '$Revision: 1.8 $'[11:-2]

Subversion uses a similar mechanism but I'm not sure of the spelling.


--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to