Crossfire Client, Trunk  R20401
DailyBuild.py
Go to the documentation of this file.
1 import time, os
2 
3 while 1:
4  midnight=list(time.localtime())
5  midnight[4]=midnight[5]=midnight[3]=0
6 
7  midnight=time.mktime(midnight)+60*60*24
8  print midnight-time.time()
9  time.sleep(midnight-time.time())
10  if not os.system('c:\python27\python.exe CFInstall.bat db auto'):
11  os.system('scp *.exe 192.168.0.43:/home/perkins/svn/Perkins/CFCompiler/')
12