def load_from_path():
 try:
  executable = find_executable_in_dir()
  if (executable is None):
   raise ValueError('Caffe executable not found in PATH')
  if (not is_pycaffe_in_dir()):
   raise ValueError('Pycaffe not found in PYTHONPATH')
  import_pycaffe()
  (version, flavor) = get_version_and_flavor(executable)
 except:
  print 'A valid Caffe installation was not found on your system.'
  print 'Use the envvar CAFFE_ROOT to indicate a valid installation.'
  raise
 return (executable, version, flavor)

def load_from_path ( ) : try : executable = find_executable_in_dir ( ) if ( executable is None ) : raise ValueError ( 'Caffe executable not found in PATH' ) if ( not is_pycaffe_in_dir ( ) ) : raise ValueError ( 'Pycaffe not found in PYTHONPATH' ) import_pycaffe ( ) ( version , flavor ) = get_version_and_flavor ( executable ) except : print 'A valid Caffe installation was not found on your system.' print 'Use the envvar CAFFE_ROOT to indicate a valid installation.' raise return ( executable , version , flavor )
load information from an installation on standard paths .