passing arguments with ampersands
SHY
soundplay at gmail.com
Mon Aug 27 12:46:12 EDT 2007
that was the problem. when i manually reassociated the extension, i somehow
didnt quote the argument for the filename. my bad.
thanks for the various explanations and options for this :)
cheers.
2007/8/20, Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:
>
> En Sat, 18 Aug 2007 09:24:35 -0300, SHY <soundplay at gmail.com> escribi�:
>
> > theres no special portion of code, just the one that handles filenames
> > with
> > spaces.
> > the problem is that when i associate a file extension to my application
> > and
> > i open it, the filename is not quoted before passed as an arguement. i
> > dont
> > know if its the problem of windows or something, or it was just my fault
> > when i incorrectly associated the extension.
>
> How did you associate it?
> Usually the registry entries are:
>
> HKCR\.ext = filetype
> HKCR\filetype = File Description
> HKCR\filetype\shell\open\command = "path\to\your\program" "%1"
>
> (Note the double quotes around %1)
>
> Get it right at the registry, and forget all that trickery joining
> sys.argv parts
>
> --
> Gabriel Genellina
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070827/76ecae91/attachment.html>
More information about the Python-list
mailing list