def RegisterShellInfo(searchPaths):
 import regutil, win32con
 suffix = IsDebug()
 exePath = FindRegisterPythonExe(('Python%s.exe' % suffix), searchPaths)
 regutil.SetRegistryDefaultValue('.py', 'Python.File', win32con.HKEY_CLASSES_ROOT)
 regutil.RegisterShellCommand('Open', (QuotedFileName(exePath) + ' "%1" %*'), '&Run')
 regutil.SetRegistryDefaultValue('Python.File\\DefaultIcon', ('%s,0' % exePath), win32con.HKEY_CLASSES_ROOT)
 FindRegisterHelpFile('Python.hlp', searchPaths, 'Main Python Documentation')
 FindRegisterHelpFile('ActivePython.chm', searchPaths, 'Main Python Documentation')

def RegisterShellInfo ( searchPaths ) : import regutil , win32con suffix = IsDebug ( ) exePath = FindRegisterPythonExe ( ( 'Python%s.exe' % suffix ) , searchPaths ) regutil . SetRegistryDefaultValue ( '.py' , 'Python.File' , win32con . HKEY_CLASSES_ROOT ) regutil . RegisterShellCommand ( 'Open' , ( QuotedFileName ( exePath ) + ' "%1" %*' ) , '&Run' ) regutil . SetRegistryDefaultValue ( 'Python.File\\DefaultIcon' , ( '%s,0' % exePath ) , win32con . HKEY_CLASSES_ROOT ) FindRegisterHelpFile ( 'Python.hlp' , searchPaths , 'Main Python Documentation' ) FindRegisterHelpFile ( 'ActivePython.chm' , searchPaths , 'Main Python Documentation' )
registers key parts of the python installation with the windows shell .