Getting SVN revision number into a program automatically

后端 未结 11 1510
孤城傲影
孤城傲影 2020-12-02 21:07

I have a python project under SVN, and I\'m wanting to display the version number when it is run. Is there any way of doing this (such as automatically running a short scrip

11条回答
  •  生来不讨喜
    2020-12-02 21:37

    There's a snippet of code in Django that allows you to do this, I'd recommend looking at it. http://code.djangoproject.com/browser/django/trunk/django/utils/version.py

提交回复
热议问题