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

Discussion in 'Python' started by Elmar Krieger, Oct 26, 2003.

  1. 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
     
    Elmar Krieger, Oct 26, 2003
    #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. Chris White

    Quotes/Double Quotes in Image Control

    Chris White, Sep 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,898
    Hermit Dave
    Sep 22, 2004
  2. Chris
    Replies:
    1
    Views:
    13,721
    Oisin
    Mar 24, 2006
  3. Tim Peters
    Replies:
    0
    Views:
    383
    Tim Peters
    Oct 26, 2003
  4. Mike Vieths

    execv putting quotes around arguments

    Mike Vieths, Feb 6, 2004, in forum: Python
    Replies:
    1
    Views:
    547
    Donn Cave
    Feb 6, 2004
  5. Mumia W.
    Replies:
    9
    Views:
    127
    harryfmudd [AT] comcast [DOT] net
    Jun 5, 2006
Loading...

Share This Page