Feature Requests item #1656675, was opened at 2007-02-10 12:36 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1656675&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Installation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Marek Kubica (leonidasxiv) Assigned to: Martin v. Löwis (loewis) Summary: Drop-Handler for Python files Initial Comment: Hi! We had a dscussion about what happens when one drops a file on a python sourcecode-file in the python-forum [1]. It turned out, that nothing happens at all. So someone brought up a solution. It is not really a problem with Python but it would be nice to add this to the Windows Installer. The proposed solution was to add the following to the registry (this is the format of the registry editor): Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Python.File\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" [HKEY_CLASSES_ROOT\Python.NoConFile\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" [HKEY_CLASSES_ROOT\Python.CompiledFile\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" That should be simple thing to do using the MSI-Installer. [1] only in german, sorry: http://www.python-forum.de/topic-7493.html ---------------------------------------------------------------------- >Comment By: Martin v. Löwis (loewis) Date: 2007-04-16 23:09 Message: Logged In: YES user_id=21627 Originator: NO I plan to implement this for 2.6; I think I can make sense out of it. With this setting, dropping file foo.txt on file bar.py will run "python.exe bar.py foo.txt", through different levels of indirection. So the file (path) being dropped appears as sys.argv[1]. ---------------------------------------------------------------------- Comment By: Jim Jewett (jimjjewett) Date: 2007-04-16 16:58 Message: Logged In: YES user_id=764593 Originator: NO Suggesting close, for insufficient documentation. ---------------------------------------------------------------------- Comment By: Jim Jewett (jimjjewett) Date: 2007-03-07 00:50 Message: Logged In: YES user_id=764593 Originator: NO What would happen then? For example, should it cause python to start up, running with that file, and the dropped file as stdin? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1656675&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com