diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-11-29 11:59:30 +0200 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2023-01-12 07:23:53 +0000 |
commit | 606a9e2e151dc182a189acdb0f4c178156799663 (patch) | |
tree | d4280a2bde66cff5360c434679b73442bc0dcd9d /packaging-tools/install_qt.py | |
parent | ebaceeb44f9240de54c040fcd6726e01f001a377 (diff) |
Create temporary directories with temppathlib's TemporaryDirectory
temppathlib wraps tempfile making it easier to use with pathlib Paths
update copyright years for changed files
Change-Id: I2447d7808922f1250ff585f5b90497aa4bb508b4
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
Diffstat (limited to 'packaging-tools/install_qt.py')
-rw-r--r-- | packaging-tools/install_qt.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging-tools/install_qt.py b/packaging-tools/install_qt.py index 1fb39181c..b75625f0d 100644 --- a/packaging-tools/install_qt.py +++ b/packaging-tools/install_qt.py @@ -3,7 +3,7 @@ ############################################################################# # -# Copyright (C) 2022 The Qt Company Ltd. +# Copyright (C) 2023 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of the release tools of the Qt Toolkit. @@ -32,9 +32,10 @@ import argparse import os import sys -from tempfile import TemporaryDirectory from typing import List, Optional +from temppathlib import TemporaryDirectory + from bldinstallercommon import create_qt_download_task, patch_qt from logging_util import init_logger from threadedwork import ThreadedWork @@ -112,8 +113,7 @@ def install_qt( else: with TemporaryDirectory() as temporary_dir: dl_pkgs_work.add_task_object( - create_qt_download_task(qt_modules, qt_path, temporary_dir, - opts) + create_qt_download_task(qt_modules, qt_path, str(temporary_dir.path), opts) ) # run task if needed |