won't increase build by default anymore

This commit is contained in:
Amr Hassan 2009-09-08 15:26:47 +00:00
parent 586fcae541
commit 7f74cbd7bd
2 changed files with 5 additions and 2 deletions

2
.build
View file

@ -1 +1 @@
9 10

View file

@ -5,9 +5,12 @@ from distutils.core import setup
import os import os
def get_build(): def get_build():
path = "./.build" path = "./.build"
if os.path.exists(path): if os.path.exists(path):
fp = open(path, "r") fp = open(path, "r")
build = eval(fp.read())+1 build = eval(fp.read())
if os.path.exists("./.increase_build"):
build += 1
fp.close() fp.close()
else: else:
build = 1 build = 1