str lambda clean on common

This commit is contained in:
Ciro Santilli
2025-05-09 16:34:16 +01:00
parent 6513e99438
commit 421ea06ff8

View File

@@ -39,7 +39,7 @@ common = sys.modules[__name__]
# Fixed parameters that don't depend on CLI arguments.
consts = {}
consts['repo_short_id'] = 'lkmc'
consts['linux_kernel_version'] = '.'.join(map(lambda i: str(i), path_properties.linux_kernel_version_tuple))
consts['linux_kernel_version'] = '.'.join(map(str, path_properties.linux_kernel_version_tuple))
# https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker
consts['in_docker'] = os.path.exists('/.dockerenv')
consts['root_dir'] = os.path.dirname(os.path.abspath(__file__))