From 5829f83532cda088c5f7a31070563840d3617113 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 7 Mar 2024 11:54:14 +0100 Subject: build scripts: Use log.warning() instead of deprecated log.warn() Change-Id: I5c3b0bdedd35bf98c110c2885c8ba35a4f418c61 Reviewed-by: Adrian Herrmann --- build_scripts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_scripts/utils.py') diff --git a/build_scripts/utils.py b/build_scripts/utils.py index 8a1dd9169..74d9e6fc5 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -949,7 +949,7 @@ def get_qtci_virtualEnv(python_ver, host, hostArch, targetArch): _path = Path(os.getenv(var, "")) _pExe = _path / "python.exe" if not _pExe.is_file(): - log.warn(f"Can't find python.exe from {_pExe}, using default python3") + log.warning(f"Can't find python.exe from {_pExe}, using default python3") _pExe = Path(os.getenv("PYTHON3_32_PATH")) / "python.exe" else: _pExe = Path(os.getenv("PYTHON2_32_PATH")) / "python.exe" @@ -960,7 +960,7 @@ def get_qtci_virtualEnv(python_ver, host, hostArch, targetArch): _path = Path(os.getenv(var, "")) _pExe = _path / "python.exe" if not _pExe.is_file(): - log.warn(f"Can't find python.exe from {_pExe}, using default python3") + log.warning(f"Can't find python.exe from {_pExe}, using default python3") _pExe = Path(os.getenv("PYTHON3_PATH")) / "python.exe" env_python = f"{_env}\\Scripts\\python.exe" env_pip = f"{_env}\\Scripts\\pip.exe" -- cgit v1.2.3