Revision f95c81bf lib/backend.py

b/lib/backend.py
1658 1658
  """
1659 1659
  if base_dir is None:
1660 1660
    os_dir = utils.FindFile(name, constants.OS_SEARCH_PATH, os.path.isdir)
1661
    if os_dir is None:
1662
      raise errors.InvalidOS(name, None, "OS dir not found in search path")
1663 1661
  else:
1664
    os_dir = os.path.sep.join([base_dir, name])
1662
    os_dir = utils.FindFile(name, [base_dir], os.path.isdir)
1663

  
1664
  if os_dir is None:
1665
    raise errors.InvalidOS(name, None, "OS dir not found in search path")
1665 1666

  
1666 1667
  api_versions = _OSOndiskVersion(name, os_dir)
1667 1668

  

Also available in: Unified diff