def hook_name(): """The name of the currently executing hook""" return os.environ.get('JUJU_HOOK_NAME', os.path.basename(sys.argv[0]))