From nobody Mon Feb 9 16:45:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1658240296; cv=none; d=zohomail.com; s=zohoarc; b=I4DtNf8K8I1Ydx0TIyNvXyKwAl6sMqbjXOo4pTxDtWxq+CoP2FGes0DdHkJs+3gSCwnFpYtxDe9h8AhJgNKjSmi71Mx1YWBtMnJaRiNXCCF1j7yhuEtVWgoE4id2WbPFMJ9S/TfY06X31ygbSmZRu3pjpIx3CkZ9cq7VvArNbBE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658240296; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Ckkw6bpau0NdOZbp3ckLiLly6gg/sTKi2b+wddiSLiE=; b=n+CV0vGgiqA6xB8RbZn+TgLLE1iQ7k42uTNdbZRxuKVdyaFdbxPaRU+2vAIJ2Fl/KX5VqniwMdojkHw+UEEsmotn1E6GWLkP1PhPuWQnxmOFrsexO2IMm5hNrsYIGeDbJ6J5h/fSqOGxj/tNesT3yjLydcxXuoS1PEE3psETXLQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 165824029632668.22254162526178; Tue, 19 Jul 2022 07:18:16 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-589-sawE4byLMiua-KCbZoxSAQ-1; Tue, 19 Jul 2022 10:18:10 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2BA758F1F0B; Tue, 19 Jul 2022 14:17:51 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13CB3C28129; Tue, 19 Jul 2022 14:17:51 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D45F5194E103; Tue, 19 Jul 2022 14:17:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BB59D1945DA7 for ; Tue, 19 Jul 2022 14:17:48 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id AADF8401E7B; Tue, 19 Jul 2022 14:17:48 +0000 (UTC) Received: from harajuku.redhat.com (unknown [10.40.195.71]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 36137492C3B for ; Tue, 19 Jul 2022 14:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658240295; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Ckkw6bpau0NdOZbp3ckLiLly6gg/sTKi2b+wddiSLiE=; b=dR8a6IPKoS9a6vErfoQx1AFB/hweoECx3lP1QGXNMZ5bMaWtv7SsU5NaxnBwbACarvZiwm uDdNR953g4Uhg0czp9ApVuh04Cngn2YxUMHeiJRBzdwNqzCYLeEc1V6IRm+hiEzVWvV+M/ CtTYbS+df5PQ5vOhONbHE7FsuCDp3vI= X-MC-Unique: sawE4byLMiua-KCbZoxSAQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] scripts: Port meson-install-web.py to pathlib Date: Tue, 19 Jul 2022 16:17:43 +0200 Message-Id: <20220719141745.220912-2-abologna@redhat.com> In-Reply-To: <20220719141745.220912-1-abologna@redhat.com> References: <20220719141745.220912-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1658240298285100001 Content-Type: text/plain; charset="utf-8" This will be useful later. Signed-off-by: Andrea Bolognani --- scripts/meson-install-web.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/meson-install-web.py b/scripts/meson-install-web.py index a03f8523cd..fdf407ba33 100755 --- a/scripts/meson-install-web.py +++ b/scripts/meson-install-web.py @@ -4,7 +4,12 @@ import os import shutil import sys =20 +from pathlib import Path + for desc in sys.argv[1:]: inst =3D desc.split(':') - os.makedirs(inst[1], exist_ok=3DTrue) - shutil.copy(inst[0], inst[1]) + src =3D Path(inst[0]) + dst =3D Path(inst[1]) + + dst.mkdir(parents=3DTrue, exist_ok=3DTrue) + shutil.copy(src, dst) --=20 2.35.3