Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.126 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.82; '*S*': 0.07; 'scripts': 0.03; 'interpreter': 0.05; 'tree': 0.05; 'subject:Python': 0.06; 'skip:# 30': 0.09; 'python': 0.11; 'received:66.196': 0.16; 'subject:windows': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'error': 0.23; 'finally,': 0.24; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'lines': 0.31; 'received:66': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'dave': 0.60; 'received:bf1.yahoo.com': 0.60; 'received:mail.bf1.yahoo.com': 0.60; 'new': 0.61; 'first': 0.61; 'received:46': 0.66; 'line,': 0.68; 'reads': 0.68; 'caused': 0.69; 'received:bullet.mail.bf1.yahoo.com': 0.74; 'drive.': 0.84; 'from:addr:yahoo.no': 0.84; 'message-id:@yahoo.no': 0.84; 'angel': 0.91; 'cd-rom': 0.91; 'pc,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s2048; t=1424516746; bh=9r6ST4WUJYlStvAMe+zX/PXvHGdVh7BeEPr+pXINpDU=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=tiPwZx1bWQOHJwCQDzfeP46afNY5mUnP87jhygMEN9XZrbg/nkcR2DgzTOOsPro3bPPsL6ke0+OlHdC5qGULN35vUDzBaHM6K49MOZWJDSZGPuqP9NCE6zSNsCtIsxsOvaL0A/j8vUB0jDqlya4F0RinPoYT9/w/KGNpemR4NQh9RaVROLCaQOP334CDu6iwDldRivQw8dMdR5gUy0N87nGFmLlpXW8oIhWLmh528wOhMzwGeztMkpRbKCwt6AtMnLCtpvp11n/N6GPKOSRtPNbmgNQa+4Bw59xY6UDZPyJJbrj9WFxtk+vZfh5YaBme/LIg/664j92UOB6nKJtmfw== X-Yahoo-Newman-Id: 776739.30292.bm@smtp149.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: PVe4qloVM1mZyyyB5CYtF4hZyFmmuJ4sWBkuGTmakp6xw1J CGXA6xFl5DVIsFFcUXxpo1jBMzVjxGW1pStvEpQ0E4YTOityTCuBMbuJU3TK 4ckVE3jde_Akt76YxY5QDlttp4TOzA2EPCsgZyoP62zdeSB154.OBmBKkZuH lH_hxF82es3wxMCRoB3SKDLkKhc_7ifoxJxxnic8z3IQixHUVgGVyV1yCJ_Z SX_t3TIUfUSX5AqPqfHm.rrDCCeKEwFsVpJCb.P.4wRaztcu.VzzeS0zO3.6 ISnSs8dhqgmQcXpYEbNY8q_dAkUic61KAmW7AR4xv5MAZEDuCk70BJzssi8t eNItyiMGykRYJlLXy89liq4mvI45L0v74x3CAXFIQNaYXgKEKWMZ9V3UWhq9 uqYuf8WHbDe3JDGHA.BVRR3._q0L3NJNyc4KBKugdLMlAmOCOjjdK1sziWgJ eJlSImf0GenUbcb7TQH9svK8K4X.lF3xUJ6qsZRUC9sVG4UahllZ3a3uORVi 5sLHTRoVxco9zWrLjjRu9.Q-- X-Yahoo-SMTP: 8zhYLGyswBB3AGU8c4pvFIFOfA-- Date: Sat, 21 Feb 2015 12:05:46 +0100 From: Gisle Vanem User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python path on windows References: <54E74A09.1060906@davea.name> In-Reply-To: <54E74A09.1060906@davea.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424516851 news.xs4all.nl 2836 [2001:888:2000:d::a6]:39842 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86024 Dave Angel wrote: > Finally, when py.exe starts, it reads that first (shebang) line, and decides which python interpreter to actually use. py.exe? Do you mean python.exe? Is there a way to make python.exe ignore all Shebang lines in all scripts? I had many generated .py-files with: #!g:\ProgramFiler\Python27\python.EXE After transferring my Python tree to a new Win-8.1 PC, my Python tree was installed under "f:\ProgramFiler\" and my CD-ROM on "g:\" This caused those scripts to access my CD-ROM or pop-up a Win-GUI error dialogue if no CD-ROM was in the drive. Irritating. -- --gv