diff --git a/gestion/tools/whokfet.py b/gestion/tools/whokfet.py index 11d9fcd8..3bef177d 100755 --- a/gestion/tools/whokfet.py +++ b/gestion/tools/whokfet.py @@ -4,12 +4,17 @@ '''Ce script permet de savoir s'il y a du monde à la kfet, filtre par membres actifs.''' import sys +from socket import gethostname + +if gethostname() != "zamok": + print "Merci d'executer ce script sur zamok." + sys.exit(1) + sys.path.append('/usr/scripts/gestion') from ldap_crans import crans_ldap from hptools import hpswitch, ConversationError from affich_tools import coul, cprint from whos import aff -from socket import gethostname from os import system import xml.dom.minidom