Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Running Python (Windows) with _spawnvp requires unexpected quotes around arguments

Reply
Thread Tools

Running Python (Windows) with _spawnvp requires unexpected quotes around arguments

 
 
Elmar Krieger
Guest
Posts: n/a
 
      10-26-2003
Hi!

The _spawnvp function expects the command line arguments as a NULL
terminated list of char * pointers, hence there is no need to enclose
filenames with quotes if they contain spaces.
However, if I run pythonw.exe with _spawnvp, and the Python script to
execute (that's the second command line parameter) has spaces in the
pathname, it only works if the pathname is enclosed with quotes.
Is that OK?

Elmar
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.NET Javascript string, want to pass '(single quotes' within '(single quotes) Chris ASP .Net 1 03-24-2006 09:03 PM
Quotes/Double Quotes in Image Control Chris White ASP .Net 1 09-22-2004 06:22 AM
execv putting quotes around arguments Mike Vieths Python 1 02-06-2004 05:27 PM
Multiline quotes - escaping quotes - et al Lawrence Tierney Java 3 12-24-2003 05:12 PM
RE: Running Python (Windows) with _spawnvp requires unexpectedquotesaround arguments Tim Peters Python 0 10-26-2003 05:37 PM



Advertisments