Now modules in custom folders can properly declare their copyright.txt.

This commit is contained in:
Relintai 2023-01-23 21:57:37 +01:00
parent d999f63cbd
commit b016f192a4

View File

@ -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