Skip to content

Instantly share code, notes, and snippets.

@mikejs
Created February 20, 2010 20:27
Show Gist options
  • Save mikejs/309881 to your computer and use it in GitHub Desktop.
Save mikejs/309881 to your computer and use it in GitHub Desktop.
# -*- mode: python; -*-
def exampleCheck(context):
context.Message('Custom check...')
return context.Result(True)
env = Environment()
conf = Configure(env, custom_tests={'ExampleCheck': exampleCheck})
# Always prints 'Custom check...(cached)', even when not cached
conf.ExampleCheck()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment