File shebang-env.diff of Package libratbag
From: Matthias Bach <marix@marix.org>
Date: 2019-08-02 22:20:22 +0200
Subject: Adjust shebangs to not rely on env
Upstream: never
Python files in openSUSE should directly specify the correct Python interpreter
to ensure we don't run into issues if a virtualenv or the like should be active
when invoking the script.
diff --git a/data/devices/data-parse-test.py b/data/devices/data-parse-test.py
index bdd4fe9..31ca244 100755
--- a/data/devices/data-parse-test.py
+++ b/data/devices/data-parse-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright © 2017 Red Hat, Inc.
#
diff --git a/data/devices/duplicate-check.py b/data/devices/duplicate-check.py
index 332f125..1841696 100755
--- a/data/devices/duplicate-check.py
+++ b/data/devices/duplicate-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright © 2018 Red Hat, Inc.
#
diff --git a/data/devices/receiver-check.py b/data/devices/receiver-check.py
index 024f3e6..68d9d99 100755
--- a/data/devices/receiver-check.py
+++ b/data/devices/receiver-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright © 2018 Red Hat, Inc.
#
diff --git a/tools/check_scan_build.py b/tools/check_scan_build.py
index c5d13f7..73209c1 100755
--- a/tools/check_scan_build.py
+++ b/tools/check_scan_build.py
@@ -1,4 +1,4 @@
-#!/bin/env python3
+#!/usr/bin/python3
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/tools/merge_ratbagd.py b/tools/merge_ratbagd.py
index 77b7e07..ed7f4ef 100755
--- a/tools/merge_ratbagd.py
+++ b/tools/merge_ratbagd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright 2017 Red Hat, Inc.
#
diff --git a/tools/ratbagctl.devel.in b/tools/ratbagctl.devel.in
index a3d6c2f..71c14c5 100755
--- a/tools/ratbagctl.devel.in
+++ b/tools/ratbagctl.devel.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# This file is part of libratbag.
#
diff --git a/tools/ratbagctl.in.in b/tools/ratbagctl.in.in
index ad0bacc..8bfdb85 100755
--- a/tools/ratbagctl.in.in
+++ b/tools/ratbagctl.in.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# Copyright 2016 Red Hat, Inc.
#
diff --git a/tools/ratbagctl.test.in b/tools/ratbagctl.test.in
index c4ad1bf..8f2f8ce 100755
--- a/tools/ratbagctl.test.in
+++ b/tools/ratbagctl.test.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
#
# This file is part of libratbag.
#