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: 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> <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, Mar 5, 2013 at 6:59 AM, io 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