code: def _get_path_by_name(part, paths):
      
      for path in paths:
          if path.alias == part:
              return path
      raise ValueError
docs: Given a command part, find the path it represents.
      :throws ValueError: if no valid file is found.