diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-03-26 10:54:17 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-03-26 12:06:40 +0000 |
commit | 1972fd80fe358967f500c9fa9941a40638e00f85 (patch) | |
tree | 5433d81bc9eee27bd415661bafe0d1ca74b8f4e4 | |
parent | 6e27374a5e180524abcdf94b740a5774aada1127 (diff) |
doc: snippet translate add missing quiet case
Change-Id: I6d3520e9544d7d169a9c933a8aa904747bc7c6c4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit b89b8daeeac7b2b22c3887fa83fe0b986f9baec7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tools/snippets_translate/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/snippets_translate/main.py b/tools/snippets_translate/main.py index 0e4ce233c..f2e723e70 100644 --- a/tools/snippets_translate/main.py +++ b/tools/snippets_translate/main.py @@ -316,7 +316,8 @@ def copy_file(file_path, py_path, category, category_path, write=False, verbose= # directories if they don't exist, and if some of them exists, # the option 'exist_ok=True' will ignore them. if write and not final_path.parent.is_dir(): - log.info(f"Creating directories for {final_path.parent}") + if not opt_quiet: + log.info(f"Creating directories for {final_path.parent}") final_path.parent.mkdir(parents=True, exist_ok=True) # Change .cpp to .py |