def RegisterModule(modName, modPath):
	"""Register an explicit module in the registry.  This forces the Python import
           mechanism to locate this module directly, without a sys.path search.  Thus
           a registered module need not appear in sys.path at all.

	   modName -- The name of the module, as used by import.
	   modPath -- The full path and file name of the module.
	"""
	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)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/lib/regutil.py/RegisterModule/original