Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed1.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'cpython': 0.05; 'paths': 0.05; 'subject:script': 0.09; 'subject:not': 0.11; 'paths.': 0.16; 'slashes': 0.16; 'subject:windows': 0.16; 'unescaped': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; "d'aprano": 0.29; 'steven': 0.29; 'code': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:192.168.0': 0.35; 'too.': 0.35; 'message-id:@gmail.com': 0.36; 'problems': 0.36; 'skip:p 20': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'forward': 0.66; '9.1': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=+jiocRO13FXZP1V0MKUO2TTwJQNQBnM+JZnM0QrLnFw=; b=ZycZQIOVdbbyPawpjn1Skao83sIXGG90btozAPditRllCdQi17+CH8HxwZGcwPOQLF mGOwuasvZDrr9bRObunDu1swFeOlHxa+UHVfmUVgFrRRh/VOWN7HlrBEn+xbmHMAZyaC EQ/hzjngpAVZhWVA9SsFMdPabj08ykaeSyJjwW2QMdxl/UlRD6fpqVpE6uEKH6+r2W6Q bw77qM9LLbV31KSsSq48GkKEwbzsk0B0MFzS1SrWTl1ylH9EJJ2GSnL4Vuq7jS7VpTAJ kH3ZY3ZJsEHnOYuNkpdcOZPp1kkIAtrYoqU80w+vN/gO9AiM+VxticAk5ItSin0Ceu3E Jqlw== X-Received: by 10.50.41.167 with SMTP id g7mr4578438igl.47.1362450345736; Mon, 04 Mar 2013 18:25:45 -0800 (PST) Date: Mon, 04 Mar 2013 20:25:44 -0600 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Python script not working on windows 7 but works fine on linux References: <5134f0d1$0$40360$4fafbaef@reader1.news.tin.it> <51355152$0$30001$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <51355152$0$30001$c3e8da3$5496439d@news.astraweb.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362450348 news.xs4all.nl 6930 [2001:888:2000:d::a6]:47286 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40493 On 2013.03.04 19:58, Steven D'Aprano wrote: > Windows understands forward slashes in paths too. You can make your code > (almost) platform-independent, and avoid a lot of problems with unescaped > backslashes, by always using forward slashes in paths. Or use os.path.join, the entire purpose of which is to create suitable paths dynamically. -- CPython 3.3.0 | Windows NT 6.2.9200 / FreeBSD 9.1