From patchwork Mon May 6 14:11:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 241683 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D2ADD2C00E8 for ; Tue, 7 May 2013 00:12:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 92A874A3B1; Mon, 6 May 2013 16:12:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jy2BJIz5Jugk; Mon, 6 May 2013 16:12:30 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6EB124A31B; Mon, 6 May 2013 16:12:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D4314A318 for ; Mon, 6 May 2013 16:12:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kStsIkjs3zUu for ; Mon, 6 May 2013 16:12:17 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by theia.denx.de (Postfix) with ESMTPS id 875C04A31B for ; Mon, 6 May 2013 16:12:11 +0200 (CEST) Received: by mail-ee0-f44.google.com with SMTP id t10so1841616eei.31 for ; Mon, 06 May 2013 07:12:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :content-type:x-gm-message-state; bh=k74oCEuN4qfeAymYuXMEEYn+4xFyaeyUAkz399FJUiY=; b=MnZFZLehPXxqKJH8aJ6++8zhtreiCsMo8z0SyFpdvOy1E1wHiDAoFC2xkpi7ciWv+U 3nKNY9XVRnLozJ6c49tGIIuiZ0W1fy+g0CEh2ALYSMWKbQ9ILUWkuEGy1hF8oaI7aUkc hSfDMORrnUu2mTcQ/n3PmabExxWrST6bGCG15dClNV8PJ4YnS34Om5b5OgTfmCfMl4jL AmK4jTFAxFboA171WiRkRxOGjMY34HpazbGdhYwbkNYBBGkr+GpnA9ECilSCARBLuONc 2ecDnou7V9Yn85265af0H4AWCMOLCYxnqyByyfEjFDZNyo0AV/Q/c9PoXe7DZt3cDxaz DdIA== X-Received: by 10.14.106.200 with SMTP id m48mr61228566eeg.17.1367849531631; Mon, 06 May 2013 07:12:11 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id n7sm33678399eeo.0.2013.05.06.07.12.09 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 06 May 2013 07:12:10 -0700 (PDT) From: Michal Simek To: Tom Rini , Michal Simek , Simon Glass , u-boot@lists.denx.de Date: Mon, 6 May 2013 16:11:58 +0200 Message-Id: <1e17aa12ee889859a17d2481b5142de30cfa660e.1367849513.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.1 X-Gm-Message-State: ALoCoQm+eCLxvkObaH/wjOoG3IuLTJKNaLVpKzIhLtkp3Rs5BgspABA4W7w5OO6lEyIibJRCRWOv Subject: [U-Boot] [RFC PATCH] patman: Do not hardcode python path X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed. Signed-off-by: Michal Simek Reviewed-by: Tom Rini Acked-by: Simon Glass --- tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.2.1 diff --git a/tools/patman/patman.py b/tools/patman/patman.py index a8061a9..7a317c5 100755 --- a/tools/patman/patman.py +++ b/tools/patman/patman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2011 The Chromium OS Authors. #