summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-11 14:29:25 +0100
committerMartin Liska <mliska@suse.cz>2022-01-11 14:29:54 +0100
commit438f2a24a4f02a3128847f7186bfcb56e7a60d83 (patch)
tree78ba3b933d98ba32066e4eb81dc30b2ad6df278c /contrib
parent265d3e1a4e3d6c71d354f859302f023dc2d33f62 (diff)
check-MAINTAINERS.py: use sys.argv[1]
contrib/ChangeLog: * check-MAINTAINERS.py: Use sys.argv[1] as path to MAINTAINERS.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/check-MAINTAINERS.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/check-MAINTAINERS.py b/contrib/check-MAINTAINERS.py
index ca7bb291282..08fc8e48fd5 100755
--- a/contrib/check-MAINTAINERS.py
+++ b/contrib/check-MAINTAINERS.py
@@ -82,7 +82,7 @@ def check_group(name, lines):
print(f'{name} are fine!')
-lines = open('MAINTAINERS').read().splitlines()
+lines = open(sys.argv[1]).read().splitlines()
needle = 'Global Reviewers'
lines = list(dropwhile(lambda x: x.strip() != needle, lines))