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

Discussion in 'Python' started by Terry Reedy, Mar 4, 2013.

  1. Terry Reedy

    Terry Reedy Guest

    On 3/4/2013 2:20 PM, ian douglas wrote:

    > I imagine your CSV file lives in a different location on your Windows 7
    > system (which also uses back-slashes '\' instead of forward-slashes '/',


    Forward slashes work fine on Windows except for invoking the executable
    at a Command Prompt command line, where '/' marks an option.

    >>> open('/programs/python33/python.exe')

    <_io.TextIOWrapper name='/programs/python33/python.exe' mode='r'
    encoding='cp1252'>

    --
    Terry Jan Reedy
     
    Terry Reedy, Mar 4, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. murali
    Replies:
    1
    Views:
    906
    Phlip
    Jun 25, 2003
  2. Mufasa
    Replies:
    2
    Views:
    357
    Michael Nemtsev
    Apr 19, 2007
  3. Fox
    Replies:
    5
    Views:
    120
  4. ian douglas
    Replies:
    5
    Views:
    193
    88888 Dihedral
    Mar 5, 2013
  5. Wolfgang Strobl
    Replies:
    0
    Views:
    147
    Wolfgang Strobl
    Mar 4, 2013
Loading...

Share This Page