Gabor,

On 15 Jun 2007, at 9:18 am, Gábor Farkas wrote:


hi,

in my project i need to get the svn-revision-number of the project somehow.

in other words, i need to be able to find out my project's revision
number in python

(i am not talking about django's revision-number. i'm talking about my
own revision number)


the best way i could find is to execute "svnversion" and get it's output.
i'm planning to do this in settings.py.... is there a better way?


How about using pysvn? [http://pysvn.tigris.org/] which I think is the same as doing apt-get install python-subversion on Debian. These give you python svn client bindings so you should be able to use that to find out the revision number.

Cheers,

Dave

--
David Reynolds
[EMAIL PROTECTED]


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to