#51 executable breaks if single quotes in higher directories

closed-fixed
nobody
None
5
2004-06-08
2004-05-20
Anonymous
No

Built an executable and tried to run it, only to get
the following syntax error. I presume its because the
raw path isn't triple quoted.

=======================================
C:\Documents and Settings\...\My Documents\Paul's
Folder\paulwork\newsclues\dist>rssproxy
File "<string>", line 1
import sys; sys.path=[r'C:\Documents and
Settings\...\My Documents\Paul'
s Folder\paulwork\newsclues\dist\library.zip']; del sys

^
SyntaxError: invalid syntax
=======================================

Cheers,
Paul

Discussion

  • Thomas Heller

    Thomas Heller - 2004-06-08

    Logged In: YES
    user_id=11105

    Strange name for a folder, if you ask me ;-)

    Anyway, the path is now triple quoted with double quotes, so
    it should now work. Assuming that a folder name cannot
    contain double quotes. Thanks!

     
  • Thomas Heller

    Thomas Heller - 2004-06-08
    • status: open --> closed-fixed
     

Log in to post a comment.