>> Is there any buildin function which mimics the behavior of the
>> standard commandline parser (generating a list of strings
>> "foo bar" and "some text" from the commandline
>> <"foo bar" "some text">)?
>
> Try the shlex module::
>
> >>> import shlex
> >>> shlex.split('"foo bar" "so
[EMAIL PROTECTED] wrote:
> Is there any buildin function which mimics the behavior of the
> standard commandline parser (generating a list of strings
> "foo bar" and "some text" from the commandline
> <"foo bar" "some text">)?
Try the shlex module::
>>> import shlex
>>> shlex.split('"fo
Hello,
I am writing a commandline tool in Python which is often feed with lots of
commandline arguments. In practice, the commandline already reached a critical
length which is to long for Windows (some versions of Windows only support
commandlines of up to 2047 characters). To work around this