aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-03-26 10:54:17 +0100
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-03-26 11:11:45 +0100
commitb89b8daeeac7b2b22c3887fa83fe0b986f9baec7 (patch)
treecb77bb5b2ec37ccbcdf067bb681a7a83151e064a /tools
parent9a4fb2eb72040aeadf6124ec1cad083859ac0787 (diff)
doc: snippet translate add missing quiet case
Pick-to: 6.0 Change-Id: I6d3520e9544d7d169a9c933a8aa904747bc7c6c4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/snippets_translate/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/snippets_translate/main.py b/tools/snippets_translate/main.py
index c6975a02f..c1267d22c 100644
--- a/tools/snippets_translate/main.py
+++ b/tools/snippets_translate/main.py
@@ -333,7 +333,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