aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-29 15:56:59 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-29 21:55:16 +0700
commit022be433adf17eb61e822e93a64662acf5a5d5e5 (patch)
tree82199c9373dfd2c172263cc35055019d439cef03
parent354904a0a61c424aec673d07339f54912b7bff75 (diff)
*.py: use proper '#!/usr/bin/env' shebang
Using hard-coded paths in shebang is a bad idea, because on different systems Python interpreter can be installed in different places. See: https://mail.python.org/pipermail/tutor/2007-June/054816.html Change-Id: Ib729ece0c95254dc2b235f90eb731681df955bd1
-rw-r--r--gsm_call_fsm.py2
-rw-r--r--mncc_sock.py2
-rwxr-xr-xmncc_test.py2
-rwxr-xr-xsmpp_test.py3
4 files changed, 5 insertions, 4 deletions
diff --git a/gsm_call_fsm.py b/gsm_call_fsm.py
index 167a805..c62df0c 100644
--- a/gsm_call_fsm.py
+++ b/gsm_call_fsm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Python implementation of GSM 04.08 call state machine for use with
# OsmoNITB MNCC interface
diff --git a/mncc_sock.py b/mncc_sock.py
index 3cc1ba1..22fe034 100644
--- a/mncc_sock.py
+++ b/mncc_sock.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Python interface to OsmoNITB MNCC (Mobile Network Call Control)
# interface
diff --git a/mncc_test.py b/mncc_test.py
index f9d102b..de35fe6 100755
--- a/mncc_test.py
+++ b/mncc_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Python testing tool for establishing calls via the OsmoNITB MNCC
# interface.
diff --git a/smpp_test.py b/smpp_test.py
index e2c2ee0..181f60d 100755
--- a/smpp_test.py
+++ b/smpp_test.py
@@ -1,4 +1,5 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
+
import logging
import sys