parameters: (self, section)
return_statement: return section
docstring: Replace anything in path_items with relative paths.
docstring_summary: Replace anything in path_items with relative paths.
docstring_tokens: Replace anything in path_items with relative paths .
function: def unparse_section(self, section):
          """Replace anything in path_items with relative paths."""
          bp = os.path.expanduser(self.inputdb.cfg.meta['basepath'])
  
          for pi in self.path_items:
              if pi in section:
                  section[pi] = os.path.relpath(section[pi], bp)
  
          return section
function_tokens: def unparse_section ( self , section ) : bp = os . path . expanduser ( self . inputdb . cfg . meta [ 'basepath' ] ) for pi in self . path_items : if pi in section : section [ pi ] = os . path . relpath ( section [ pi ] , bp ) return section