def RegisterModule(modName, modPath):
 try:
  import os
  os.stat(modPath)
 except os.error:
  print ('Warning: Registering non-existant module %s' % modPath)
 win32api.RegSetValue(GetRootKey(), (BuildDefaultPythonKey() + ('\\Modules\\%s' % modName)), win32con.REG_SZ, modPath)

def RegisterModule ( modName , modPath ) : try : import os os . stat ( modPath ) except os . error : print ( 'Warning: Registering non-existant module %s' % modPath ) win32api . RegSetValue ( GetRootKey ( ) , ( BuildDefaultPythonKey ( ) + ( '\\Modules\\%s' % modName ) ) , win32con . REG_SZ , modPath )
register an explicit module in the registry .