1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

vcsinfo.py is regenerated when setup.py is run

This commit is contained in:
Adam Blackburn
2009-04-12 14:48:52 +08:00
parent 0a35f0989d
commit 0c7c4e86dd

View File

@@ -30,11 +30,10 @@ REVISION_NUM = 'unknown'
CURSES_REVNO = 'uimod'
try:
if not os.path.exists('vcsinfo.py'):
try:
os.system('bzr version-info --python > vcsinfo.py')
except:
pass
try:
os.system('bzr version-info --python > vcsinfo.py')
except:
pass
import vcsinfo
REVISION_NUM = vcsinfo.version_info['revno']
except Exception, e: