<[EMAIL PROTECTED]> wrote: > probably this question has been asked before, but I am unable to find > an answer... I have a big application (written in Python + a GUI in wxPython) > which allows the user to save its work in a file with an extension .glb. > Does anyone know if is there a way (on Windows, but also on other platforms < if possible, thought I know almost nothing about Unix/Linux/Mac things) > to automatically register the extension .glb so that when the user > double-clicks > the project file my application is launched with the project file name as > a first argument?
briefly, register an "extension => progid" mapping under HKEY_CLASSES_ROOT/extension and a "program identity => command" mapping under HKEY_CLASSES_ROOT/progid/shell/open/command under HKEY_CLASSES_ROOT (use regedit to see how it's done for other applications) for more info, see http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/extending.asp </F> -- http://mail.python.org/mailman/listinfo/python-list