From: Nabil Ghodbane Date: Wed, 12 Jan 2022 10:58:49 +0000 (+0100) Subject: spns #26907: use distro.name to retrieve platform X-Git-Tag: V9_9_0~234 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f89cf3fcb4471df338a6e5974d6c248dbd559ac;p=tools%2Fsat_salome.git spns #26907: use distro.name to retrieve platform --- 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'