Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40493

Re: Python script not working on windows 7 but works fine on linux

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 <bahamutzero8825@gmail.com>
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 <bahamutzero8825@gmail.com>
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" <python-list@python.org>
Subject Re: Python script not working on windows 7 but works fine on linux
References <5134f0d1$0$40360$4fafbaef@reader1.news.tin.it> <mailman.2854.1362424842.2939.python-list@python.org> <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2860.1362450348.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python script not working on windows 7 but works fine on linux io <maroso@libero.it> - 2013-03-04 19:06 +0000
  Re: Python script not working on windows 7 but works fine on linux Christian Gollwitzer <auriocus@gmx.de> - 2013-03-04 20:20 +0100
    Re: Python script not working on windows 7 but works fine on linux io <maroso@libero.it> - 2013-03-04 19:58 +0000
  Re: Python script not working on windows 7 but works fine on linux ian douglas <iandouglas736@gmail.com> - 2013-03-04 11:20 -0800
    Re: Python script not working on windows 7 but works fine on linux io <maroso@libero.it> - 2013-03-04 19:59 +0000
      Re: Python script not working on windows 7 but works fine on linux Chris Angelico <rosuav@gmail.com> - 2013-03-05 07:56 +1100
    Re: Python script not working on windows 7 but works fine on linux Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-05 01:58 +0000
      Re: Python script not working on windows 7 but works fine on linux Andrew Berg <bahamutzero8825@gmail.com> - 2013-03-04 20:25 -0600
    Re: Python script not working on windows 7 but works fine on linux 88888 Dihedral <dihedral88888@googlemail.com> - 2013-03-04 18:58 -0800
    Re: Python script not working on windows 7 but works fine on linux 88888 Dihedral <dihedral88888@googlemail.com> - 2013-03-04 18:58 -0800
  Re: Python script not working on windows 7 but works fine on linux Wolfgang Strobl <news4@mystrobl.de> - 2013-03-04 20:30 +0100
  Re: Python script not working on windows 7 but works fine on linux Terry Reedy <tjreedy@udel.edu> - 2013-03-04 16:19 -0500

csiph-web