Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Gisle Vanem Newsgroups: comp.lang.python Subject: Re: extending PATH on Windows? Date: Fri, 19 Feb 2016 15:18:08 +0100 Lines: 52 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de iYhu7QnOggdAn1K9SpfBhw1Xnsxauv8XSRx90RzPeq8A== Return-Path: X-Original-To: python-list@mail.python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'matches': 0.07; 'subject:Windows': 0.09; 'imho.': 0.09; 'skip:f 70': 0.09; 'spec': 0.09; 'url:github': 0.09; 'jan': 0.11; '-name': 0.16; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:f 60': 0.16; 'wrote:': 0.16; 'try:': 0.18; '>>>': 0.20; 'windows': 0.20; '2015': 0.20; 'skip:" 30': 0.20; 'feb': 0.23; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'skip:f 40': 0.27; '(c)': 0.29; '-----': 0.29; 'skip:- 10': 0.34; '2009': 0.34; 'dir': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'files': 0.38; 'received:46': 0.63; 'reserved.': 0.67; 'chrisa': 0.84; 'from:addr:yahoo.no': 0.84; 'message-id:@yahoo.no': 0.84; 'dennis': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s2048; t=1455891486; bh=WaYMVTktKbbJgcUIOn114W75dDCiDSMOhiZk+UNvE1o=; h=From:Subject:To:References:Date:In-Reply-To:From:Subject; b=J0P+8JH9opYmBoTXJsNb/VYRMFOtRsW41cUgr86gYXZU20+Qrby7xfYiFgiK4YdTXFm/ljYGIKilFlYG+xO2pJQW63iF0/aHdjcpily+XNK9J1NsQ8+9F1w05UQXvA/xAUBWZG0x7NXdnMhECM1e3hSpjDOstlb2nMeAxc85Kp9m+05BKtSxTlTsNNgRjoZk5hOB73sN52SXondPj95+BxaSY+h8+uHzxo/lE206vV4Co0CPR7GEv6EEBocLObcLwB8odiYnF7F1QNmKu9DdYrs7u+Hnt7UOanU2x3dQtCauTgXJktIiNJQJLIzXea29RgOxZcK+Oi4e7RbQYvm4UQ== X-Yahoo-Newman-Id: 813824.97164.bm@smtp128.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: fkAbMbwVM1kKxnzEb_ib23CwWeEr.Ipke1EJInfTyqTZ31H yWEsg52oBXtelKSgI2lfl2_XQYpvCsRiubGV9xbxBWsTnn_LcSaEwqXtFtq5 AFTyR15GwZjEMp_fJVNHdNk8XyIg6iYuBzPElx1wEOrnHCaQOnJGCWqUruiv Lc5yg931g6Gpf5FuFsMxqn6vVqFfTrhY6FEvk_uzDrO20GmZGIti9MieGkC0 QRdfaWsGNY8a2OBk17Fe01ILtRuSqO9zNCBJ_tj6zZbX4d8J0cUeo15lIX19 3o5VoLAPG_xqUEotShzrgobq8GuETSBrHvgaR4jJCAd8pIj67nhMVGKoTAXR Nl9LvfD3gEDL5BqvfEYQ0xrFc9s9bjzuYZHfIEY1Pg4A0cpk.uZwne1Gr3cP gSxB5JAuhsqwOKF_FmNjaCeq4L174Ib.lWt.oEj6RwWu.8M7ETXDGdZ367LA QeudrXF7vGZxURakAuQKnZ7fZJStHcDp8ZfMgrZX5EldHt4sDKG0ENmiGaXa y0hAN6X8vbPb3FDwGUXCRxRVs8BIZgQ-- X-Yahoo-SMTP: 8zhYLGyswBB3AGU8c4pvFIFOfA-- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103195 Dennis Lee Bieber wrote: >>> How can one search for files with DOS? >> >> dir /s /b \*add2path.* >> >> ChrisA > > Or move to PowerShell... > > Windows PowerShell > Copyright (C) 2009 Microsoft Corporation. All rights reserved. > > PS C:\Users\Wulfraed\Documents> Get-ChildItem -Path c:\ -Filter *add2path* > -Name -Recurse Clumsy IMHO. Try: c:\> envtool --path *ipython* Matches in %PATH: 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython-script.py 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython.exe 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython.exe.manifest 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython2-script.py 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython2.exe 12 Feb 2015 - 17:16:12: f:\ProgramFiler\Python27\Scripts\ipython2.exe.manifest 08 Feb 2015 - 12:48:56: f:\ProgramFiler\Python27\Scripts\ipython_win_post_install.py 7 matches found for "*ipython*". ------------------- Or find a spec on *all partitions* using Everything Search engine: c:\> envtool --evry *ipython* Matches from EveryThing: ... 133 matches found for "*ipython*". ------------------- Or for Python-path searches: c:\> envtool --python *ipython* Matches in "f:\ProgramFiler\Python27\python.exe" sys.path[]: 23 Jan 2016 - 13:50:30: f:\ProgramFiler\Python27\lib\site-packages\ipython-2.1.0-py2.7.egg\IPython\ 23 Jan 2016 - 13:50:26: f:\ProgramFiler\Python27\lib\site-packages\IPython\ 23 Jan 2016 - 13:50:30: f:\ProgramFiler\Python27\lib\site-packages\ipython-2.1.0-py2.7.egg\ 3 matches found for "*ipython*". ----- My envtool is at https://github.com/gvanem/EnvTool EveryThing is at http://voidtools.com/