Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: eryk sun Newsgroups: comp.lang.python Subject: Re: extending PATH on Windows? Date: Sat, 20 Feb 2016 07:31:50 -0600 Lines: 14 Message-ID: References: <56C72420.8020607@yahoo.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de PF5ETcXOc0jSY8/9ub4NGAhq5R14TCdpJS7B2KT0KSlQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Windows': 0.09; 'path.': 0.09; 'script,': 0.09; 'file,': 0.15; '.py': 0.16; '2016': 0.16; 'executable,': 0.16; 'line)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'code.': 0.23; 'defined': 0.23; 'feb': 0.23; 'examples': 0.24; 'header:In-Reply-To:1': 0.24; 'example': 0.26; 'command': 0.26; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'locations': 0.27; 'searches': 0.29; 'run': 0.33; 'problem': 0.33; 'received:google.com': 0.35; 'clear': 0.35; 'path': 0.35; 'but': 0.36; 'needed': 0.36; 'received:209.85': 0.36; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'several': 0.38; 'files': 0.38; "didn't": 0.39; 'to:addr:python.org': 0.40; 'treat': 0.72; '"where"': 0.84; 'cc:addr:ix.netcom.com': 0.84; "op's": 0.84; 'dennis': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5zhJsZHqL22iL0eoJDTPiHTnwewyxcYpXcJj8AYUFzk=; b=zZG7RIz+sW7IheqDmWaz2JL+E4lMv8WbabELsX8i1DVioLloi+Mhm3miTe6wT38Hgg 0nMzooxnbWoWmt6iCFV2zMNvnkEi3fCPd50YEUPrpa9kERkZahyeA3IPxXRe+VXrWdLQ 7R98sAGnU7w4nBCmDVhkQS+W6ve5M0Drl+tRZw1q755tBn1L8vq89JmWEC8nw6hmKoAH PL4FlXnQwFZbLt1+Lh0J5udbANsiSRsw0ZqQOHKSQj/rt+mvYxXs8RIntijxSwIMD71D 7LtWb6MKsD+aYBnCQUI8vqvJiJHep534nSkX/hwPvnhhLQ4hV35E3Elt2Sx+YJrdAEIS XiNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5zhJsZHqL22iL0eoJDTPiHTnwewyxcYpXcJj8AYUFzk=; b=U/qE7HXUbrfVup/KMEWcwPFnVOexCb3Ej9QAEcxv+oJv6B1neOMwY89yHVPk+JiF/n uhGeTXGl/VFa7lYy4NznPQq2z9WkPrPiYxzYp/JTNGQl/lqfvOYvRdfDPF804QNnYCDa pw9LV3Te7VEBgnGKONwvYlxfXmwIVXp4n6svCYq9ELFbt3MdIci4QNH42xqx8bqw15DM EQov9LQTvXP9/e9Rg0HJQ+DkAsiyyRwUUfrNvUFaba79kPiUZO2WxZXKeZ0vL6pZ74wb 0lDgWFoayPZ1xeTV+fAVLXpOdhqvpKwu2y/VKyLF+BHexTFavBrHsibMDgLiSkHJPiX2 txoQ== X-Gm-Message-State: AG10YOQcEYesqdPTe8xKkuVeYfGNgZN6ymg7KgZ6e56EB4iivWGZLHMLC2Vf7kxOpyqbiswSt8FRcHxTZ5HqOQ== X-Received: by 10.50.154.10 with SMTP id vk10mr981629igb.74.1455975150752; Sat, 20 Feb 2016 05:32:30 -0800 (PST) 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:103264 On Fri, Feb 19, 2016 at 6:57 PM, Dennis Lee Bieber wrote: > > Problem -- if the OP's PATH had contained the location of the add2path > script, the OP might not have needed to search for it... (presuming their > configuration also was set up to treat .py files as executable, entering > win_add2path would be all that was needed to run it on a command line) Ulli didn't need to run the file, but to read it as example code. > "where" only searches the locations defined in PATH I made it clear in several examples that where.exe is not limited to searching PATH.