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

Centralized version number in setup.py

This commit is contained in:
Adam Blackburn
2008-12-30 09:53:30 -06:00
parent da54e6033b
commit b0ef6a905b
9 changed files with 15 additions and 10 deletions

View File

@@ -213,6 +213,8 @@ class configure(Command):
for line in item_in.readlines():
for item, value in values:
line = line.replace('%' + str(item.upper().replace('-','_')) + '%', str(value))
line = line.replace('%VERSION%', str(VERSION_NUM))
item_out.write(line)