From 9d893641b920d1d11ee55dc42cec1517d228ddcd Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 11 Sep 2019 09:13:19 +0200 Subject: [PATCH] Minor fix path handling when considering whether to convert project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should use the new relative path to the project, instead of the old specified on command line. Change-Id: I54cb1cefd4df079a95c364b7c7c66c36941add01 Reviewed-by: Leander Beernaert Reviewed-by: Jörg Bornemann --- util/cmake/pro2cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 22e1b4b5748..1274d44741b 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -2527,7 +2527,7 @@ def main() -> None: if new_current_dir: os.chdir(new_current_dir) - project_file_absolute_path = os.path.abspath(file) + project_file_absolute_path = os.path.abspath(file_relative_path) if not should_convert_project(project_file_absolute_path): print('Skipping conversion of project: "{}"'.format(project_file_absolute_path)) continue