adherents.py: tweak du sys.path
Pour continuer sur la lancée des commits précédents.
This commit is contained in:
parent
56b6b7f424
commit
bef5f66427
1 changed files with 9 additions and 6 deletions
|
@ -5,13 +5,16 @@
|
||||||
# Licence : GPLv2
|
# Licence : GPLv2
|
||||||
|
|
||||||
import smtplib, sys, commands, shutil, os, traceback,grp
|
import smtplib, sys, commands, shutil, os, traceback,grp
|
||||||
sys.path.append('/usr/scripts/gestion')
|
|
||||||
from affich_tools import cprint, anim, OK, WARNING, ERREUR
|
|
||||||
import config
|
|
||||||
import config.mails
|
|
||||||
import mail as mail_module
|
|
||||||
from time import strftime
|
from time import strftime
|
||||||
from ldap_crans import hostname, crans_ldap
|
|
||||||
|
sys.path.append('/usr/scripts/gestion')
|
||||||
|
if '/usr/scripts' not in sys.path:
|
||||||
|
sys.path.append('/usr/scripts')
|
||||||
|
from gestion.affich_tools import cprint, anim, OK, WARNING, ERREUR
|
||||||
|
import gestion.config as config
|
||||||
|
import config.mails config_mails
|
||||||
|
import gestion.mail as mail_module
|
||||||
|
from gestion.ldap_crans import hostname, crans_ldap
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.path.append('/usr/lib/mailman')
|
sys.path.append('/usr/lib/mailman')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue