[gnome-photos/flatpak-ci: 3/4] tests: Respect the environment by using /usr/bin/env in the shebang



commit 5bc14ce751ef2afe7865c2491306ce264a6ef4ce
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Tue Sep 25 17:55:30 2018 +0200

    tests: Respect the environment by using /usr/bin/env in the shebang
    
    Distributors generally don't like /usr/bin/env [1] because they don't
    want packaged applications to depend on the user's personal PATH.
    However, distributors can, and they do, adjust the shebang to their
    liking. So it seems better to optimize towards respecting any
    customizations that a continuous integration/deployment system or a
    contributor might have made to the environment.
    
    [1] https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines
    
    https://gitlab.gnome.org/GNOME/gnome-photos/merge_requests/46

 tests/basic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/basic.py b/tests/basic.py
index 604ec9cb..2270568c 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 from testutil import *
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]