From patchwork Fri Jan 17 13:19:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Panteleev X-Patchwork-Id: 1454 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 43B4C165B97A2 for ; Fri, 17 Jan 2020 13:20:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DMARC_TESTS_FAIL=0.01 autolearn=ham autolearn_force=no version=3.4.3 X-Spam-BL-Results: [127.0.0.6] [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:20:37 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 7B459182649B8E; Fri, 17 Jan 2020 13:20:19 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id 0660A182649B20; Fri, 17 Jan 2020 13:19:59 +0000 (UTC) Authentication-Results: orion.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E778D2BFE3; Fri, 17 Jan 2020 13:19:58 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 87DCD2BFE3 for ; Fri, 17 Jan 2020 13:19:52 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:19:52 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 8513D182649B03 for ; Fri, 17 Jan 2020 13:19:46 +0000 (UTC) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:19:46 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id b6so22724535wrq.0 for ; Fri, 17 Jan 2020 05:19:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I3CuuZKaHXkon8gdBEuYw9BO7URExboZhEwhfiHmlbI=; b=rU0CiwaoubmC+Fi7tG45mvpBQez8Kr2+kmAX/IkRJh6xggO9Ys5Yr/I6vUgR7Bw5EG ZD/KtWxk7Mv2qKXGzRkoifU0PR2rZHF6iP2v6x3730cu4wQ6ofhRWJbM4RaHNTvCDuYZ 4e7qljPxyRq6G1SGqx9akIxvqLdhlX1sqVDY9FDSJYbXaQzMCLMy6uyPOKrRL6fBeXQE A4LyR3UDYHNVX34m0fmspE5UujKGJUBk2lC4DlJhiuVZ84Qcpgy+WUBx8yfE5QS1DGAk GgW9DcyXbnAHHXEn/gffQs/lcZ6sLqdtB6nKREvcmlDvGeqeyGskL8wKxUU+EcHAUyeC IeIw== X-Gm-Message-State: APjAAAXnu3D9aVQP64C7LCiuVFj/2Sy7D31RH8u/TEnihlU16w3JgwOL TwmCVOrMMk+PHVY76yvbS+TAyG0diFs= X-Google-Smtp-Source: APXvYqyHA5rrOUJy3Z0U0P43dI1XdLP17DjlcBH6hUuqdc5xGphHXgROqJTwABRAhzv0GclhZHoUJA== X-Received: by 2002:adf:fd0d:: with SMTP id e13mr3019407wrr.421.1579267185864; Fri, 17 Jan 2020 05:19:45 -0800 (PST) Received: from home.thecybershadow.net ([89.28.117.31]) by smtp.gmail.com with ESMTPSA id z124sm10577779wmc.20.2020.01.17.05.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 05:19:45 -0800 (PST) From: Vladimir Panteleev To: arch-projects@archlinux.org Date: Fri, 17 Jan 2020 13:19:28 +0000 Message-Id: <20200117131931.1746498-2-archlinux@thecybershadow.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200117131931.1746498-1-archlinux@thecybershadow.net> References: <20200117131931.1746498-1-archlinux@thecybershadow.net> MIME-Version: 1.0 Subject: [arch-projects] [namcap] [PATCH 2/5] namcap-devel: Allow running from any directory X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux projects development discussion Cc: Vladimir Panteleev Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" --- namcap-devel | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/namcap-devel b/namcap-devel index bdb94df..5b88fe3 100755 --- a/namcap-devel +++ b/namcap-devel @@ -1,9 +1,8 @@ #!/bin/sh -PATH="$(pwd):$PATH" -PARSE_PKGBUILD_PATH="$(pwd)" -export PARSE_PKGBUILD_PATH +namcap=$(cd "$(dirname "$0")" && pwd) +PATH=$namcap:$PATH +export PARSE_PKGBUILD_PATH=$namcap -PYTHONPATH="$(pwd)" -export PYTHONPATH +export PYTHONPATH=$namcap -./namcap -t namcap-tags "$@" +"$namcap"/namcap -t "$namcap"/namcap-tags "$@"