def __LoadModule(path, name='module'):
 try:
  if (sys.version_info[0] < 3):
   import imp
   return imp.load_source(name, path)
  elif (sys.version_info[1] < 5):
   from importlib.machinery import SourceFileLoader
   return SourceFileLoader(name, path).load_module()
  else:
   import importlib.util
   spec = importlib.util.spec_from_file_location(name, path)
   rv = importlib.util.module_from_spec(spec)
   spec.loader.exec_module(rv)
   return rv
 except:
  return None

def __LoadModule ( path , name = 'module' ) : try : if ( sys . version_info [ 0 ] < 3 ) : import imp return imp . load_source ( name , path ) elif ( sys . version_info [ 1 ] < 5 ) : from importlib . machinery import SourceFileLoader return SourceFileLoader ( name , path ) . load_module ( ) else : import importlib . util spec = importlib . util . spec_from_file_location ( name , path ) rv = importlib . util . module_from_spec ( spec ) spec . loader . exec_module ( rv ) return rv except : return None
load the source file at path .