problem with execv command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dudeja.rajat@gmail.com

    problem with execv command

    Hi,

    I'm facing problem with the execv command:

    my command is :
    os.execv(' C:\Program Files\Subversio n\bin\svn ', ( 'list', ' \"
    http://subversion.stv.abc.com/svn/Eng \" ' ) )

    The error I'm getting is :
    OSError: [Errno 22] Invalid argument


    I tried using a variable for http path but still I'm getting the same error

    Please help.
    --
    Regards,
    Rajat
  • Diez B. Roggisch

    #2
    Re: problem with execv command

    dudeja.rajat@gm ail.com wrote:
    Hi,
    >
    I'm facing problem with the execv command:
    >
    my command is :
    os.execv(' C:\Program Files\Subversio n\bin\svn ', ( 'list', ' \"
    http://subversion.stv.abc.com/svn/Eng \" ' ) )
    >
    The error I'm getting is :
    OSError: [Errno 22] Invalid argument
    >
    >
    I tried using a variable for http path but still I'm getting the same
    error
    >
    Please help.
    You need to either escape the backslashes in your path using \\, or use
    python raw string literals like this:

    r"C:\foo"

    or use forward-slashes, which windows accepts as well.

    Diez

    Comment

    Working...