From b016f192a4b9e0cab5e0e01340b5356e2d818338 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 23 Jan 2023 21:57:37 +0100 Subject: [PATCH] Now modules in custom folders can properly declare their copyright.txt. --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 4b7cce8f5..606697a2e 100644 --- a/SConstruct +++ b/SConstruct @@ -648,7 +648,12 @@ if selected_platform in platform_list: # Get license path (if present) try: license_file = config.get_license_file() - env.module_license_files.append("#" + path + "/" + license_file) + + if not os.path.isabs(path): + env.module_license_files.append("#" + path + "/" + license_file) + else: + env.module_license_files.append(path + "/" + license_file) + except Exception: pass