[systemd-devel] [PATCH] *.py: don't hardcode /usr/bin/python
Ramkumar Ramachandra
artagnon at gmail.com
Thu Nov 29 23:07:26 PST 2012
Execute python using "/usr/bin/env python" instead of hard-coding the
path of the Python binary.
Signed-off-by: Ramkumar Ramachandra <artagnon at gmail.com>
---
Minor fix.
src/analyze/systemd-analyze | 2 +-
src/locale/generate-kbd-model-map | 2 +-
test/rule-syntax-check.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/analyze/systemd-analyze b/src/analyze/systemd-analyze
index 88699d6..2c69b6f 100755
--- a/src/analyze/systemd-analyze
+++ b/src/analyze/systemd-analyze
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys, os
import argparse
diff --git a/src/locale/generate-kbd-model-map b/src/locale/generate-kbd-model-map
index 624c517..333f47c 100755
--- a/src/locale/generate-kbd-model-map
+++ b/src/locale/generate-kbd-model-map
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys
import system_config_keyboard.keyboard_models
diff --git a/test/rule-syntax-check.py b/test/rule-syntax-check.py
index 4b602a9..397d89a 100755
--- a/test/rule-syntax-check.py
+++ b/test/rule-syntax-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Simple udev rules syntax checker
#
# (C) 2010 Canonical Ltd.
--
1.7.8.1.362.g5d6df.dirty
More information about the systemd-devel
mailing list