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 <[EMAIL PROTECTED]>: > > En Sat, 18 Aug 2007 09:24:35 -0300, SHY <[EMAIL PROTECTED]> 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
-- http://mail.python.org/mailman/listinfo/python-list