diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-07-16 10:45:41 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-07-20 19:20:28 +0200 |
| commit | cf581233c224d743bfe5653de385c69e52bd00f5 (patch) | |
| tree | c0300d26bf617da4f9b1cdd2fe54902596b0e0fb /sources/pyside6/doc/qtattributionsscannertorst.py | |
| parent | 36aa3df2adf799240070570f29946d39104f9aea (diff) | |
qtattributionsscanner.py: Locate binary in libexec
qtattributionsscanner was moved to libexec by
qttools/0861ee9e695300645e098c331428ae3a256e74e5
(Qt 6.2).
Change-Id: I4267faa2fb429b20ab0486bf5665e0a585da9574
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/doc/qtattributionsscannertorst.py')
| -rw-r--r-- | sources/pyside6/doc/qtattributionsscannertorst.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/pyside6/doc/qtattributionsscannertorst.py b/sources/pyside6/doc/qtattributionsscannertorst.py index 5d7473aaf..dbc8040d0 100644 --- a/sources/pyside6/doc/qtattributionsscannertorst.py +++ b/sources/pyside6/doc/qtattributionsscannertorst.py @@ -100,7 +100,11 @@ def readFile(fileName): def runScanner(directory, targetFileName): # qtattributionsscanner recursively searches for qt_attribution.json files # and outputs them in JSON with the paths of the 'LicenseFile' made absolute - command = f'qtattributionsscanner --output-format json {directory}' + libexec_b = subprocess.check_output('qtpaths -query QT_INSTALL_LIBEXECS', + shell=True) + libexec = libexec_b.decode('utf-8').strip() + scanner = os.path.join(libexec, 'qtattributionsscanner') + command = f'{scanner} --output-format json {directory}' jsonS = subprocess.check_output(command, shell=True) if not jsonS: raise RuntimeError(f'{command} failed to produce output.') |
