Associating file types to my Python program
Peter Hansen
peter at engcorp.com
Thu Jul 24 11:39:37 EDT 2003
Psymaster wrote:
>
> How could I do that? I'm writing an image viewer and I would
> want to associate all images to be opened with my proggie when
> they are double-clicked.
Not really a Python question, but if you specify your OS we can
probably help better.
Assuming you mean Windows, just open Explorer, find the File Types
tab on the Folder Options submenu, and create New Type or Edit
the existing type. For more information, Google can help you,
or you can look at how the Windows installer already set up
.py and .pyw files in that File Type list, and copy that.
-Peter
More information about the Python-list
mailing list