From 7426578b0dd82846a35c37d52ab3e32f136b230d Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 24 Oct 2014 23:07:37 +0200 Subject: [PATCH] gestion: retrait des shabang inutiles Puisque les fichiers ne sont pas executables --- archive/gestion/spam_cablages.py | 4 +--- gestion/affich_tools.py | 1 - gestion/annuaires_pg.py | 1 - gestion/cert_utils.py | 1 - gestion/chsh.py | 6 +++--- gestion/config_mail.py | 2 +- gestion/email_tools.py | 1 - gestion/gest_crans.py | 2 +- gestion/ip6tools.py | 1 - gestion/ipt.py | 1 - gestion/iptools.py | 2 +- gestion/ldap_crans.py | 2 +- gestion/lock.py | 1 - gestion/mail-all.py | 2 +- gestion/majswitch.py | 4 ++-- gestion/numeros_disponibles.py | 2 +- gestion/ridtools.py | 1 - gestion/user_tests.py | 1 - gestion/whos.py | 2 +- 19 files changed, 13 insertions(+), 24 deletions(-) diff --git a/archive/gestion/spam_cablages.py b/archive/gestion/spam_cablages.py index e0c64441..6eb8b3af 100755 --- a/archive/gestion/spam_cablages.py +++ b/archive/gestion/spam_cablages.py @@ -1,12 +1,10 @@ -#!/usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -!- encoding: utf-8 -!- # SPAM_CABLAGES.PY -- Spamme respbats pour rappeler les cablages a effectuer import psycopg2 from collections import defaultdict -import sys -sys.path.append('/usr/scripts/') import utils.sendmail TEMPLATE = u""" diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index d0d37f77..4b5eec2a 100644 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- """ Collection de fonction/classe pour avoir un bel affichage diff --git a/gestion/annuaires_pg.py b/gestion/annuaires_pg.py index 034961e5..f699f627 100644 --- a/gestion/annuaires_pg.py +++ b/gestion/annuaires_pg.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- import psycopg2 diff --git a/gestion/cert_utils.py b/gestion/cert_utils.py index 32b64913..98230ba4 100644 --- a/gestion/cert_utils.py +++ b/gestion/cert_utils.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- from OpenSSL import crypto, SSL from socket import gethostname diff --git a/gestion/chsh.py b/gestion/chsh.py index de63b908..160feff8 100755 --- a/gestion/chsh.py +++ b/gestion/chsh.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- """ Changement du shell de l'utilisateur lancant le programme @@ -9,8 +9,8 @@ """ import os, sys -from affich_tools import prompt -from ldap_crans import crans_ldap +from gestion.affich_tools import prompt +from gestion.ldap_crans import crans_ldap db = crans_ldap() uid = os.getenv('SUDO_UID') diff --git a/gestion/config_mail.py b/gestion/config_mail.py index afac5b39..70e9cf5c 100755 --- a/gestion/config_mail.py +++ b/gestion/config_mail.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- ############################################################################### # config_mail : gestion du .forward et .procmailrc des adhérents diff --git a/gestion/email_tools.py b/gestion/email_tools.py index 193ade5f..2a3f302f 100644 --- a/gestion/email_tools.py +++ b/gestion/email_tools.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) Stéphane Glondu + ??? diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 4deb2a90..0a6849eb 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- u""" diff --git a/gestion/ip6tools.py b/gestion/ip6tools.py index 01c2db61..afa3221c 100644 --- a/gestion/ip6tools.py +++ b/gestion/ip6tools.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # IP6TOOLS.PY -- IPv6 manipulation routines diff --git a/gestion/ipt.py b/gestion/ipt.py index 587aebba..2b729318 100644 --- a/gestion/ipt.py +++ b/gestion/ipt.py @@ -1,4 +1,3 @@ -#!/usr/bin/python # -*- coding: utf-8 -*- # # IPT.PY -- Gestion du firewall diff --git a/gestion/iptools.py b/gestion/iptools.py index 4c46d1be..ea35abcf 100755 --- a/gestion/iptools.py +++ b/gestion/iptools.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- """ Manipulation d'IPv4 diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 1bf39a1a..733e353f 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- """ diff --git a/gestion/lock.py b/gestion/lock.py index 20bd88bf..aefd61d4 100755 --- a/gestion/lock.py +++ b/gestion/lock.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- """ Gestion de lock diff --git a/gestion/mail-all.py b/gestion/mail-all.py index e282d5f2..f6cc3afb 100755 --- a/gestion/mail-all.py +++ b/gestion/mail-all.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- # Envoi d'un mail donné à certains adherents # Premier parametre : critere de recherche diff --git a/gestion/majswitch.py b/gestion/majswitch.py index 98d33550..891016bf 100755 --- a/gestion/majswitch.py +++ b/gestion/majswitch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- """ @@ -8,7 +8,7 @@ J.Benoist Leger """ from time import sleep -from annuaires_pg import all_switchs +from gestion.annuaires_pg import all_switchs import pexpect import getopt import sys diff --git a/gestion/numeros_disponibles.py b/gestion/numeros_disponibles.py index 398f5a3c..d66d9468 100755 --- a/gestion/numeros_disponibles.py +++ b/gestion/numeros_disponibles.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- """ diff --git a/gestion/ridtools.py b/gestion/ridtools.py index a0d17ffc..1ad21af9 100644 --- a/gestion/ridtools.py +++ b/gestion/ridtools.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # RIDTOOLS.PY -- Gestion de la conversion rid <-> IP diff --git a/gestion/user_tests.py b/gestion/user_tests.py index 35595100..6f6b0130 100755 --- a/gestion/user_tests.py +++ b/gestion/user_tests.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- """ Fonctions de tests sur l'utilisateur diff --git a/gestion/whos.py b/gestion/whos.py index a84081d5..faf3f237 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/bin/bash /usr/scripts/python.sh # -*- coding: utf-8 -*- # Copyright (C) Frédéric Pauget