[fix] Take care of hook priority

This commit is contained in:
kload 2014-10-25 18:49:19 +02:00
parent 7d99cd8f4d
commit 94b45bbecb

View file

@ -94,7 +94,7 @@ def hook_callback(action, args=None):
elif not isinstance(args, list):
args = [args]
for hook in os.listdir(hook_folder + action):
for hook in sorted(os.listdir(hook_folder + action)):
try:
hook_exec(file=hook_folder + action +'/'+ hook, args=args)
except: pass