def import_site_module(path, module, dummy=None, modulefile=None):
 short_module = module[(module.rfind('.') + 1):]
 if (not modulefile):
  modulefile = (short_module + '.py')
 if os.path.exists(os.path.join(os.path.dirname(path), modulefile)):
  return __import__(module, {}, {}, [short_module])
 return dummy

def import_site_module ( path , module , dummy = None , modulefile = None ) : short_module = module [ ( module . rfind ( '.' ) + 1 ) : ] if ( not modulefile ) : modulefile = ( short_module + '.py' ) if os . path . exists ( os . path . join ( os . path . dirname ( path ) , modulefile ) ) : return __import__ ( module , { } , { } , [ short_module ] ) return dummy
try to import the site specific module if it exists .