Skip to content

Instantly share code, notes, and snippets.

@hashar
Created July 18, 2013 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashar/6029608 to your computer and use it in GitHub Desktop.
Save hashar/6029608 to your computer and use it in GitHub Desktop.
if not args.force:
# Verify whether template is fresh
outdated = os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath)
if not outdated:
continue # skip file generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment