(Windows) "Dropping" stuff onto a Python script

Roger Upole rupole at hotmail.com
Fri Nov 7 13:04:58 EST 2008


This is done via a drop handler.
Add registry key

HKCR\Python.File\shellex\DropHandler

with a default value of

{86C86720-42A0-1069-A2E8-08002B30309D}

       Roger



<daniel.haude at googlemail.com> wrote in message 
news:b201472c-ac38-4094-90de-068cafe5e4b4 at a29g2000pra.googlegroups.com...
> Hello people,
>
> I'd like to have the functionality known from "real" executables that
> if I drag-drop a file icon on top of the app, the app starts and has
> the file's path as command-line argument.
>
> However, this doesn't seem to work with Python scripts because Windows
> sees those just as files, not apps.
>
> Can this be done?
>
> Thanks,
>
> robert
> --
> http://mail.python.org/mailman/listinfo/python-list
> 






More information about the Python-list mailing list