From 7925e31a9801ed82ca9de8935c910ba13d7e86cc Mon Sep 17 00:00:00 2001 From: ButenkoMS Date: Thu, 21 Mar 2024 15:33:44 +0200 Subject: [PATCH] Fix: `cengal/build_tools/find_and_prepare_cython_modules` --- .../versions/v_0/find_and_prepare_cython_modules.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cengal/build_tools/find_and_prepare_cython_modules/versions/v_0/find_and_prepare_cython_modules.py b/cengal/build_tools/find_and_prepare_cython_modules/versions/v_0/find_and_prepare_cython_modules.py index 44edcb2f0..d103acd2b 100644 --- a/cengal/build_tools/find_and_prepare_cython_modules/versions/v_0/find_and_prepare_cython_modules.py +++ b/cengal/build_tools/find_and_prepare_cython_modules/versions/v_0/find_and_prepare_cython_modules.py @@ -206,7 +206,8 @@ def extend_file_names_to_root_relative_paths(root_path: str, dir_path_obj: Relat if owner_path: result.append(file_name_or_path) else: - result.append(path_join('.', get_relative_path_part(dir_path_obj(file_name), root_path))) + # result.append(path_join('.', get_relative_path_part(dir_path_obj(file_name), root_path))) + result.append(get_relative_path_part(dir_path_obj(file_name), root_path)) return result @@ -335,7 +336,8 @@ def filter(filtering_entity: FilteringEntity, data): for file in files: if file_extension.lower() in (compilable_ext | headers_ext): is_exctension = True - sub_result.append(path_join('.', get_relative_path_part(dir_path_obj(file), root_path))) + # sub_result.append(path_join('.', get_relative_path_part(dir_path_obj(file), root_path))) + sub_result.append(get_relative_path_part(dir_path_obj(file), root_path)) if file_extension.lower() in codegen_files_ext: filename, _ = splitext(file) @@ -346,7 +348,8 @@ def filter(filtering_entity: FilteringEntity, data): print(get_exception()) else: is_exctension = True - sub_result.append(path_join('.', get_relative_path_part(dir_path_obj(file), root_path))) + # sub_result.append(path_join('.', get_relative_path_part(dir_path_obj(file), root_path))) + sub_result.append(get_relative_path_part(dir_path_obj(file), root_path)) if file_extension.lower() in libs_ext: try: