diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-11-16 12:14:46 +0100 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2019-01-22 08:39:22 +0000 |
commit | 10d849f82e0408350d9235cafdf04cc654ac0046 (patch) | |
tree | 48bdd3933b81681543223587e518247e0ed987ab /tools | |
parent | 59d04ad178011dd0d4e0f9ef24a55a3da98b10e1 (diff) | |
download | qtwebengine-10d849f82e0408350d9235cafdf04cc654ac0046.tar.gz |
Remove directory parameter from gn_find_mocables.py
It's very unnecessary: the file parameters are already absolute paths. The
script only works because os.path.join(dir, f) == f for absolute f.
Change-Id: Iba80d5e743cf8f834ac1b051afe2ab815891c751
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/scripts/gn_find_mocables.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/scripts/gn_find_mocables.py b/tools/scripts/gn_find_mocables.py index d97dcb534..d1f682456 100644 --- a/tools/scripts/gn_find_mocables.py +++ b/tools/scripts/gn_find_mocables.py @@ -32,10 +32,9 @@ import os mocables = set() includedMocs = set() -dir = sys.argv[1] files = sys.argv[2:] -for f in filter(os.path.isfile, [os.path.join(dir, f) for f in files]): +for f in filter(os.path.isfile, files): inBlockComment = False for line in open(f).readlines(): # Block comments handling |