diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-07 11:54:14 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-07 12:14:12 +0100 |
commit | 5829f83532cda088c5f7a31070563840d3617113 (patch) | |
tree | 9365b46164de655c458ebc26b27600a106e956c2 /build_scripts/utils.py | |
parent | 0b43807deee7ebfe0d5a2fd79e07a6cbab569970 (diff) |
build scripts: Use log.warning() instead of deprecated log.warn()
Change-Id: I5c3b0bdedd35bf98c110c2885c8ba35a4f418c61
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'build_scripts/utils.py')
-rw-r--r-- | build_scripts/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
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" |