blob: e55089271a90e9603c27177089f88bccacd83eb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Author: Sander Klein <debian-bugs@roedie.nl>
Description: Debian uses by default python 2 instead of python3.
diff -Naurp netdata.orig/collectors/python.d.plugin/python.d.plugin.in netdata/collectors/python.d.plugin/python.d.plugin.in
--- netdata.orig/collectors/python.d.plugin/python.d.plugin.in
+++ netdata/collectors/python.d.plugin/python.d.plugin.in
@@ -1,21 +1,4 @@
-#!/usr/bin/env bash
-'''':;
-pybinary=$(which python || which python3 || which python2)
-filtered=()
-for arg in "$@"
-do
- case $arg in
- -p*) pybinary=${arg:2}
- shift 1 ;;
- *) filtered+=("$arg") ;;
- esac
-done
-if [ "$pybinary" = "" ]
-then
- echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM"
- exit 1
-fi
-exec "$pybinary" "$0" "${filtered[@]}" # '''
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Description:
|