#!/usr/bin/python import os,string,glob,sys,getopt,re script = sys.argv[0] assert os.path.exists(script) def uptodate(source=None,target=None): if not os.path.exists(target): return 0 return os.path.getmtime(source)