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

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 2013-03-05 07:56 +1100
Subject Re: Python script not working on windows 7 but works fine on linux
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2855.1362430590.2939.python-list@python.org> (permalink)

Show all headers | 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