From: Martin Liska Date: Tue, 11 Jan 2022 13:29:25 +0000 (+0100) Subject: check-MAINTAINERS.py: use sys.argv[1] X-Git-Tag: basepoints/gcc-13~1838 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=438f2a24a4f02a3128847f7186bfcb56e7a60d83;p=thirdparty%2Fgcc.git check-MAINTAINERS.py: use sys.argv[1] contrib/ChangeLog: * check-MAINTAINERS.py: Use sys.argv[1] as path to MAINTAINERS. --- diff --git a/contrib/check-MAINTAINERS.py b/contrib/check-MAINTAINERS.py index ca7bb2912825..08fc8e48fd52 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))