I have created an application. It uses a database file to display its contents in a wxpython frame. Assume the database extension is .xyz. When I double-click the .xyz file, I want to open this file in my application and call the function inside my application to process it. How can I do this in Python and on Windows.
Thanks in advance.
ftype and assoc will allow you to do this (reasonable) version independently.
In your python script, you can use argparse to parse the command line arguments (which you specified in ftype).
ftype
Python, Windows. . , , , Windows. Vista: http://windows.microsoft.com/en-US/windows-vista/Change-which-programs-Windows-uses-by-default