Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > distutils and binding a script to a file extension on windows

Thread Tools

distutils and binding a script to a file extension on windows

Alexandre Guimond
Posts: n/a

I built a little installer on windows XP using distutils for my
package. In there i add a few files to the python script directory. I
would like one of these scripts to be the default program to be used by
files with a given extention (e.g. i have an image viewer and would
like it to be used when ever i click on a .gif file). I can do this
manually (through Tools->Folder Options->File Types), but it would be
nicer if the installer could configure this.

It seems this may be possible through the "postinstallation" script of
distutils, but i have no clue how to do this. does any have experience
with this? i assume i need to edit the registry entries, but i dont
know how or which ones.

thx for any help


Reply With Quote
Posts: n/a
Hello Alex,

Not really an answer but if you use InnoSetup
( you can set file type association (see


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
distutils, No module named numpy.distutils.fcompiler.conv_template Luis Alberto Zarrabeitia Gomez Python 0 03-30-2009 03:56 PM
compiling extension using distutils and visual studio 2003 markybob Python 0 06-28-2007 03:06 PM
How to convert a .txt file extension to a .xls file extension? Steve ASP .Net 3 08-25-2006 05:43 PM
can distutils windows installer invoke another distutils windows installer Python 1 05-11-2006 10:07 PM
distutils: How add "-L path" switch when building C extension? Christian Seberino Python 0 11-05-2003 10:09 PM