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


Groups > comp.lang.python > #40480

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'paths': 0.05; 'separator.': 0.09; 'subject:script': 0.09; 'windows,': 0.09; 'subject:not': 0.11; ':-)': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'still,': 0.16; 'subject:windows': 0.16; 'thankyou': 0.16; 'wrote:': 0.17; 'example.': 0.17; 'posted': 0.22; 'absolute': 0.23; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'trouble': 0.28; 'relative': 0.30; 'saves': 0.30; 'code': 0.31; 'generally': 0.32; 'much.': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'real': 0.61; '2013': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=SD3Ye5RsVxj2HcRoh362MsGNPP1KOyqg02zEPUib1/Q=; b=TVJ0fsXPw9vD8quGiJmkAXA/kn0+sP9IlFhbZsMs0lvEcmaOXVYcMirXYkQQSW3xdC PNOAbdR+yW67CIcb+ij5lYkiwtH+wwJ4nnP7TSmhwSaYOSPA0bm6sBiViPQ8q2umAhMj r/jrOm1jAEBcvECNysMmFGrVPHbDNpFze1eQ1/w5WnwE/Sx8d0T9k1pc67Cg+HvN464p 9fjM/WmFt8FgXl26HSehUpt4INkgCKF62MsB6fGlCa4xZFjmrIvk4PjD2kMpVuwZKOTS I/QzLLRmY7U8G0QeW10ygiYWNRIsBMaIMwjT2BaAFce+n0NzQuQngq/lBhJjK5o3x9hD E5VQ==
MIME-Version 1.0
X-Received by 10.52.29.209 with SMTP id m17mr7374817vdh.111.1362430587708; Mon, 04 Mar 2013 12:56:27 -0800 (PST)
In-Reply-To <5134fd35$0$40360$4fafbaef@reader1.news.tin.it>
References <5134f0d1$0$40360$4fafbaef@reader1.news.tin.it> <mailman.2854.1362424842.2939.python-list@python.org> <5134fd35$0$40360$4fafbaef@reader1.news.tin.it>
Date Tue, 5 Mar 2013 07:56:27 +1100
Subject Re: Python script not working on windows 7 but works fine on linux
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.2855.1362430590.2939.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362430590 news.xs4all.nl 6873 [2001:888:2000:d::a6]:41149
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40480

Show key headers only | View raw


On Tue, Mar 5, 2013 at 6:59 AM, io <maroso@libero.it> wrote:
> Genius!
>
> The code i posted was an example.
> My real code was c:\btc_trading ....
>
> i was just missing the double slashes!
>
> Thanks , thankyou very much.
>
> :-)

Even on Windows, you can use / as a directory separator. This
generally saves you the trouble of switching to \\ for everything;
though still, absolute paths are often wrong. But at least you can use
relative paths safely!

ChrisA

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