Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'executable': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:script': 0.09; 'terry': 0.09; 'subject:not': 0.11; "'/'": 0.16; 'csv': 0.16; 'invoking': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'slashes': 0.16; 'subject:windows': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'windows': 0.19; 'option.': 0.22; 'command': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'header:X-Complaints-To:1': 0.28; 'fine': 0.28; 'douglas': 0.29; 'file': 0.32; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'except': 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'different': 0.63; 'forward': 0.66; 'lives': 0.71; 'prompt': 0.78; 'received:fios.verizon.net': 0.84; 'imagine': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Python script not working on windows 7 but works fine on linux Date: Mon, 04 Mar 2013 16:19:45 -0500 References: <5134f0d1$0$40360$4fafbaef@reader1.news.tin.it> <5134F3FC.3020708@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: <5134F3FC.3020708@gmail.com> 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362432000 news.xs4all.nl 6881 [2001:888:2000:d::a6]:49769 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:40482 On 3/4/2013 2:20 PM, ian douglas wrote: > I imagine your CSV file lives in a different location on your Windows 7 > system (which also uses back-slashes '\' instead of forward-slashes '/', Forward slashes work fine on Windows except for invoking the executable at a Command Prompt command line, where '/' marks an option. >>> open('/programs/python33/python.exe') <_io.TextIOWrapper name='/programs/python33/python.exe' mode='r' encoding='cp1252'> -- Terry Jan Reedy