parameters: (workspace)
return_statement: return source_paths
docstring: reads catkin workspace files and returns the list of all declared
      source paths
  
      :param workspace: path to catkin workspace folder, ``str``
docstring_summary: reads catkin workspace files and returns the list of all declared
      source paths
docstring_tokens: reads catkin workspace files and returns the list of all declared source paths
function: def get_source_paths(workspace):
      """
      reads catkin workspace files and returns the list of all declared
      source paths
  
      :param workspace: path to catkin workspace folder, ``str``
      """
      # determine source spaces
      filename = os.path.join(workspace, CATKIN_MARKER_FILE)
      if not os.path.isfile(filename):
          raise ValueError('Not a catkin workspace: "%s", missing file %s' % (workspace, filename))
      with open(filename) as f:
          data = f.read()
  
      source_paths = []
      if data != '':
          real_source_paths = set([])
          for path in data.split(';'):
              real_path = os.path.realpath(path)
              if real_path not in real_source_paths:
                  source_paths.append(path)
                  real_source_paths.add(real_path)
      return source_paths
function_tokens: def get_source_paths ( workspace ) : # determine source spaces filename = os . path . join ( workspace , CATKIN_MARKER_FILE ) if not os . path . isfile ( filename ) : raise ValueError ( 'Not a catkin workspace: "%s", missing file %s' % ( workspace , filename ) ) with open ( filename ) as f : data = f . read ( ) source_paths = [ ] if data != '' : real_source_paths = set ( [ ] ) for path in data . split ( ';' ) : real_path = os . path . realpath ( path ) if real_path not in real_source_paths : source_paths . append ( path ) real_source_paths . add ( real_path ) return source_paths