This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
kaneton/test/packages/ktp/hook.py

38 lines
798 B
Python
Raw Normal View History

2013-02-11 21:04:30 +00:00
#
# ---------- header -----------------------------------------------------------
#
# project kaneton
#
# license kaneton
#
# file /home/mycure/KANETON-TEST-SYSTEM/packages/ktp/hook.py
#
# created julien quintard [mon oct 25 19:58:10 2010]
# updated julien quintard [thu feb 3 23:56:36 2011]
#
#
# ---------- packages ---------------------------------------------------------
#
import os
import yaml
#
# ---------- definitions ------------------------------------------------------
#
Extension = ".hk"
#
# ---------- functions --------------------------------------------------------
#
#
# this function loads the hooks dispatcher.
#
def Load(directory):
path = directory + "/hooks" + Extension
return yaml.load(file(path, 'r'))