Skip to content

Commit

Permalink
tools: change python invocations to use /usr/bin/env python3
Browse files Browse the repository at this point in the history
Let's be consistent here

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Sep 11, 2019
1 parent bd8123e commit 975ff2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,20 @@ fedora:30@valgrind:
MESON_TEST_ARGS: '--suite=valgrind --no-suite=hardware --setup=valgrind'
before_script:
- dnf install -y valgrind

# Python checks, only run on Fedora

fedora:30@usr-bin-env-python:
extends: .fedora-build@template
variables:
FEDORA_VERSION: 30
script:
- |
if git grep -l '^#!/usr/bin/python'; then
echo "Use '/usr/bin/env python3' in the above files";
/bin/false
fi
#
# Ubuntu
#
Expand Down
2 changes: 1 addition & 1 deletion tools/libinput-record-verify-yaml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# vim: set expandtab shiftwidth=4:
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
Expand Down
2 changes: 1 addition & 1 deletion tools/test-tool-option-parsing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# vim: set expandtab shiftwidth=4:
# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
#
Expand Down

0 comments on commit 975ff2f

Please sign in to comment.