From 9b21dbbd7909678117649c68ac5137a74dc54667 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 6 Apr 2020 09:42:01 +0200 Subject: CMake: Reformat python scripts Change-Id: I1dfac318cdbbc4b4b7c76b113edca7db8f52f56b Reviewed-by: Leander Beernaert Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util/cmake/pro2cmake.py') diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index d6d328a817..c64f7f5b56 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -189,7 +189,7 @@ def _parse_commandline(): dest="output_file", type=str, help="Specify a file path where the generated content should be written to." - "Default is to write to CMakeLists.txt in the same directory as the .pro file.", + "Default is to write to CMakeLists.txt in the same directory as the .pro file.", ) parser.add_argument( @@ -201,11 +201,13 @@ def _parse_commandline(): ) return parser.parse_args() + def get_top_level_repo_project_path(project_file_path: str = "") -> str: qmake_conf_path = find_qmake_conf(project_file_path) qmake_conf_dir_path = os.path.dirname(qmake_conf_path) return qmake_conf_dir_path + def is_top_level_repo_project(project_file_path: str = "") -> bool: qmake_conf_path = find_qmake_conf(project_file_path) qmake_conf_dir_path = os.path.dirname(qmake_conf_path) @@ -3689,7 +3691,8 @@ def write_qml_plugin_epilogue( cm_fh.write( f"{indent_0}set_source_files_properties({qml_file} PROPERTIES\n" f"{indent_1}QT_QML_SKIP_QMLDIR_ENTRY TRUE\n" - f"{indent_0})\n") + f"{indent_0})\n" + ) cm_fh.write( f"\n{indent_0}qt6_target_qml_files({target}\n{indent_1}FILES\n" -- cgit v1.2.3