From 4f89cf3fcb4471df338a6e5974d6c248dbd559ac Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 12 Jan 2022 11:58:49 +0100 Subject: [PATCH] spns #26907: use distro.name to retrieve platform --- products/env_scripts/qt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/products/env_scripts/qt.py b/products/env_scripts/qt.py index 55abd20..c22a6dd 100644 --- a/products/env_scripts/qt.py +++ b/products/env_scripts/qt.py @@ -25,7 +25,8 @@ def set_env(env, prereq_dir, version): def set_nativ_env(env): # Adapt Qt libraries dir according to the current distribution (generic -> Ubuntu) - if any(distribution in platform.platform() for distribution in ["debian", "generic"]) : + import distro + if any(distribution in distro.name().lower() for distribution in ["debian", "generic", "ubuntu"]) : qt_lib_dir='/usr/lib/x86_64-linux-gnu' else : qt_lib_dir='/usr/lib64' -- 2.39.2