From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uKRMOJt5i1+OLAAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 23:09:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id jnz4M5t5i19DKQAAbx9fmQ (envelope-from ) for ; Sat, 17 Oct 2020 23:09:15 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7745E9400BF for ; Sat, 17 Oct 2020 23:09:13 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D67D920001; Sat, 17 Oct 2020 19:09:02 -0400 (EDT) Received: from wedjat.horus-it.com (wedjat.horus-it.com [IPv6:2a01:4f9:2a:2e8d::c0de]) by mail.notmuchmail.org (Postfix) with ESMTPS id 182EB1FFCC for ; Sat, 17 Oct 2020 19:09:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by wedjat.horus-it.com (Postfix) with ESMTP id D4DD4A600647 for ; Sun, 18 Oct 2020 01:08:49 +0200 (CEST) X-Virus-Scanned: at horus-it.com Received: from wedjat (wedjat.horus-it.com [IPv6:2a01:4f9:2a:2e8d::c0de]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by wedjat.horus-it.com (Postfix) with ESMTPS id B1AFEA6001E0 for ; Sun, 18 Oct 2020 01:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ml.seichter.de; s=k1; t=1602976129; bh=8tfN8fl8BEuWwSyn0xMOopawF8uv7q4jBk40eHYR5Ns=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: Content-Type; b=dnGzja+yC4CoNxkgXN4t8VEXHiEsoA/8NJRLEaKTljj7gECrMiiNO9dz4xzfw8IDe fSrrEgKGnt2lRPtFabCl7WcgOXZcS3whQhdI2hsYG0a7bu/6xsAfT+rFwMxf6dGsB4 +nGdZw3XJjCF90bbFSvhMRpt6Wo9GlN/VA6Ml9Bglkm8oG6ezJOrxZYys+lnT7XhiA 5/X6Ac2Q8XJ9ikqPg+nBstLTjcFHdhsho7Z4RoGlvBoUaNWcUvERhJWYLcLdeFIVkI 45O0OKrgfUizoeYTnCUuXQdtQfXAJ9CW96/S8VFVQL7bDmOKsmXgXWYkeplNNRHo6P BiOFzuIumPHjQ== From: Ralph Seichter To: notmuch@notmuchmail.org Subject: Re: Dependencies should include "realpath" In-Reply-To: <87pn5hw16e.fsf@tethera.net> References: <87d01hewdd.fsf@wedjat.horus-it.com> <87sgadwvpt.fsf@tethera.net> <87o8l1r6u0.fsf@wedjat.horus-it.com> <87pn5hw16e.fsf@tethera.net> Mail-Followup-To: notmuch@notmuchmail.org Date: Sun, 18 Oct 2020 01:08:49 +0200 Message-ID: <87lfg4bgce.fsf@wedjat.horus-it.com> MIME-Version: 1.0 Message-ID-Hash: 73JFJJQ6GPORYKYC7NDNJKTYPE5JPXVS X-Message-ID-Hash: 73JFJJQ6GPORYKYC7NDNJKTYPE5JPXVS X-MailFrom: ralph@ml.seichter.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=ml.seichter.de header.s=k1 header.b=dnGzja+y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ml.seichter.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.63 X-TUID: Nf42Eg/LrA0M * David Bremner: > I'm not sure what an "overhaul" would involve. Looking at conf.py, I find the following confusing: lines = ['.. include:: /../emacs/rstdoc.rsti\n\n'] # in the source tree for file in ('notmuch.rsti', 'notmuch-lib.rsti', 'notmuch-show.rsti', 'notmuch-tag.rsti'): lines.extend(open(rsti_dir+'/'+file)) rst_epilog = ''.join(lines) del lines "lines" is of type List[str]. In a loop which uses "file" (a reserved expression), open() returns file handles on success. The string (!) list is then extended with file handles, and after the loop, members of the list (one string, n file handles) are concatenated using an empty string. What is the reasoning behind this code segment? As for generating a config file with configure and then reading and executing individual lines from Python: Why not write to doc/dyncf.py and use "from .dyncf import tags, rsti_dir" in conf.py? Maybe I am off on a tangent, though. It would help me if I knew what problem you were actually trying to solve?` -Ralph