[sip] Utilisation de #!/bin/bash /usr/scripts/python.sh sur les scripts

This commit is contained in:
Valentin Samir 2015-05-29 19:50:29 +02:00
parent 7c98e01e56
commit 9078c80d34
5 changed files with 8 additions and 13 deletions

View file

@ -1,9 +1,8 @@
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
import syslog
sys.path.append('/usr/scripts/sip/')
from asterisk import AGI, Profile
from sip.asterisk import AGI, Profile
if __name__ == '__main__' :
agi=AGI()

View file

@ -1,8 +1,7 @@
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
sys.path.append('/usr/scripts/sip/')
from asterisk import History
from sip.asterisk import History
if __name__ == '__main__' :
if len(sys.argv)>1:

View file

@ -1,8 +1,7 @@
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
sys.path.append('/usr/scripts/sip/')
from asterisk import Sms
from sip.asterisk import Sms
if __name__ == '__main__' :
if len(sys.argv)>4:

View file

@ -1,7 +1,6 @@
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
sys.path.append('/usr/scripts/')
import lc_ldap.shortcuts
from lc_ldap.attributs import imprimeur, nounou

View file

@ -1,7 +1,6 @@
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import sys
sys.path.append('/usr/scripts/')
import lc_ldap.shortcuts