New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop-Handler for Python files #44569
Comments
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] [HKEY_CLASSES_ROOT\Python.NoConFile\shellex\DropHandler] [HKEY_CLASSES_ROOT\Python.CompiledFile\shellex\DropHandler] That should be simple thing to do using the MSI-Installer. [1] only in german, sorry: http://www.python-forum.de/topic-7493.html |
What would happen then? For example, should it cause python to start up, running with that file, and the dropped file as stdin? |
Suggesting close, for insufficient documentation. |
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]. |
I have now added a drop handler in r67149, r67150, and r67151. However, |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: