Skip to content

Commit dbeb47a

Browse files
committed
Add opensips-mi script auto-install
1 parent edc3766 commit dbeb47a

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

opensips-mi.py renamed to scripts/opensips-mi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#!/usr/bin/env python
2+
##
3+
## This file is part of the OpenSIPS Python Package
4+
## (see https://github.com/OpenSIPS/python-opensips).
5+
##
6+
## This program is free software: you can redistribute it and/or modify
7+
## it under the terms of the GNU General Public License as published by
8+
## the Free Software Foundation, either version 3 of the License, or
9+
## (at your option) any later version.
10+
##
11+
## This program is distributed in the hope that it will be useful,
12+
## but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
## GNU General Public License for more details.
15+
##
16+
## You should have received a copy of the GNU General Public License
17+
## along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
##
19+
120
import argparse
221
from opensips.mi import OpenSIPSMI, OpenSIPSMIException
322
import json

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"License :: OSI Approved :: MIT License",
1515
"Operating System :: OS Independent",
1616
],
17+
scripts=['scripts/opensips-mi'],
1718
python_requires=">=3.6"
1819
)

0 commit comments

Comments
 (0)