RobJ wrote: > Philip I update to PasteScript but PasteScript is still failing when I > run --reload. What seems to work is commenting out the If statement > for Windows: > > ----------------------------------------------- > if sys.platform == "win32": > args[0] = '"%s"' % args[0] > ----------------------------------------------- > > > I haven't looked at the code closely so I'm not sure what the > consequences are of commenting out this code but everything seems to > work the way that it did with Python 2.4.
I was under the impression that there was a longstanding bug in Windows exec* functions (and subprocess) that the first argument required quoting if it had spaces in it. Strictly speaking it shouldn't, as those functions as well as the subprocess module take already-parsed lists of arguments. The bug manifests itself if you install Python into a directory with a space in it (e.g., Program Files), which is not the default. But perhaps this bug has been fixed? I'm guessing not in every version of Python, or maybe not every API, or... I'm not sure. If anyone knows the status of that bug, and maybe can doublecheck that it does or does not exist in Python 2.4 and 2.5, I could put in a version check or something. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
