Commit 9078c80d authored by Valentin Samir's avatar Valentin Samir

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

parent 7c98e01e
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
import syslog import syslog
sys.path.append('/usr/scripts/sip/') from sip.asterisk import AGI, Profile
from asterisk import AGI, Profile
if __name__ == '__main__' : if __name__ == '__main__' :
agi=AGI() agi=AGI()
......
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
sys.path.append('/usr/scripts/sip/') from sip.asterisk import History
from asterisk import History
if __name__ == '__main__' : if __name__ == '__main__' :
if len(sys.argv)>1: if len(sys.argv)>1:
......
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
sys.path.append('/usr/scripts/sip/') from sip.asterisk import Sms
from asterisk import Sms
if __name__ == '__main__' : if __name__ == '__main__' :
if len(sys.argv)>4: if len(sys.argv)>4:
......
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
sys.path.append('/usr/scripts/')
import lc_ldap.shortcuts import lc_ldap.shortcuts
from lc_ldap.attributs import imprimeur, nounou from lc_ldap.attributs import imprimeur, nounou
......
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys
sys.path.append('/usr/scripts/')
import lc_ldap.shortcuts import lc_ldap.shortcuts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment