[ python-Bugs-1711608 ] CGIHttpServer fails if python exe has spaces

SourceForge.net noreply at sourceforge.net
Tue May 8 21:11:51 CEST 2007


Bugs item #1711608, was opened at 2007-05-03 02:34
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1711608&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Steve Cassidy (stevecassidy)
Assigned to: Nobody/Anonymous (nobody)
Summary: CGIHttpServer fails if python exe has spaces

Initial Comment:
In addition to the problem noted in #1436206 with spaces in the file names of scripts being executed, if Python has been installed in a directory with spaces (C:\Program Files\Python) the server will fail to execute the script because the name of the executable is not quoted properly.

My attempts to fix this have failed since just putting quotes around the exe name "C:\\Program Files\..." doesn't work, however we have found that just quoting the part of the path with spaces 'C:\\"Program Files"\\...' will work.  

It seems a bit odd that this bug has persisted for so long. A fix would be nice since this module is really good to give to my students (doing python web development for the first time) so they don't have to worry about server installation issues. 

Steve



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-05-08 21:11

Message:
Logged In: YES 
user_id=21627
Originator: NO

I don't find it odd that the bug persisted for so long: there is a reason
that the default installation of Python does *not* go into "Program Files",
as spaces in file names produce endless problems.

Quoting the paths should work, though - don't forget to quote arguments as
well.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1711608&group_id=5470


More information about the Python-bugs-list mailing list