distutils and binding a script to a file extension on windows

Discussion in 'Python' started by Alexandre Guimond, May 14, 2006.

  1. Hi.

    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

    alex.
    Alexandre Guimond, May 14, 2006
    #1
    1. Advertising

  2. Alexandre Guimond

    Miki Guest

    Miki, May 14, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. timw.google
    Replies:
    1
    Views:
    511
    Serge Orlov
    May 11, 2006
  2. Steve
    Replies:
    3
    Views:
    26,937
    Steve
    Aug 25, 2006
  3. markybob
    Replies:
    0
    Views:
    316
    markybob
    Jun 28, 2007
  4. llothar
    Replies:
    17
    Views:
    1,237
    Steve Holden
    Apr 7, 2008
  5. Luis Alberto Zarrabeitia Gomez

    distutils, No module named numpy.distutils.fcompiler.conv_template

    Luis Alberto Zarrabeitia Gomez, Mar 30, 2009, in forum: Python
    Replies:
    0
    Views:
    1,281
    Luis Alberto Zarrabeitia Gomez
    Mar 30, 2009
Loading...

Share This Page