python/treelite/libpath.py [49:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              os.path.join(curr_path, './lib/'),
              os.path.join(curr_path, './build/lib/'),
              os.path.join(sys.prefix, 'treelite'),
              os.path.join(site.USER_BASE, 'treelite')]
  # Windows hack: additional candidate locations
  if sys.platform == 'win32':
    if platform.architecture()[0] == '64bit':
      dll_path.append(os.path.join(curr_path, '../../windows/x64/Release/'))
      # hack for pip installation when copy all parent source directory here
      dll_path.append(os.path.join(curr_path, './windows/x64/Release/'))
    else:
      dll_path.append(os.path.join(curr_path, '../../windows/Release/'))
      # hack for pip installation when copy all parent source directory here
      dll_path.append(os.path.join(curr_path, './windows/Release/'))
  # Now examine all candidate locations for the library file
  dll_path = [os.path.join(p, lib_name) for p in dll_path]
  lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)]

  if not lib_path:
    raise TreeliteLibraryNotFound(
        'Cannot find library {} in the candidate path: '.format(lib_name) +
        'List of candidates:\n' + ('\n'.join(dll_path)))
  return lib_path

__all__ = []
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



runtime/native/python/treelite_runtime/libpath.py [50:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              os.path.join(curr_path, './lib/'),
              os.path.join(curr_path, './build/lib/'),
              os.path.join(sys.prefix, 'treelite'),
              os.path.join(site.USER_BASE, 'treelite')]
  # Windows hack: additional candidate locations
  if sys.platform == 'win32':
    if platform.architecture()[0] == '64bit':
      dll_path.append(os.path.join(curr_path, '../../windows/x64/Release/'))
      # hack for pip installation when copy all parent source directory here
      dll_path.append(os.path.join(curr_path, './windows/x64/Release/'))
    else:
      dll_path.append(os.path.join(curr_path, '../../windows/Release/'))
      # hack for pip installation when copy all parent source directory here
      dll_path.append(os.path.join(curr_path, './windows/Release/'))
  # Now examine all candidate locations for the library file
  dll_path = [os.path.join(p, lib_name) for p in dll_path]
  lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)]

  if not lib_path:
    raise TreeliteLibraryNotFound(
        'Cannot find library {} in the candidate path: '.format(lib_name) +
        'List of candidates:\n' + ('\n'.join(dll_path)))
  return lib_path

__all__ = []
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



