Python app links in windows

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Nov 13 23:19:59 CET 2006


At Monday 13/11/2006 18:47, Bryce Bolton wrote:

>My question is:  How do the contents of the link file get passed to the
>python application assocated with .PAL files?  Are the file contents passed
>as an ARGV array?  There must be more to this because when I open a file
>like some_doc.XLS, the entire contents of that file get passed to Excel, but
>I don't know how.

When you register your application to handle .PAL files, you specify 
the command line to be used; usually it is "executable" "%1"
So, your application receives the file name (not its contents!) as an 
argument; see sys.argv[]


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list