parameters: (*path_components)
return_statement: return os.path.realpath(os.path.join(*all_parts))
docstring: Returns a path relative to the directory this file is in
docstring_summary: Returns a path relative to the directory this file is in
docstring_tokens: Returns a path relative to the directory this file is in
function: def relative(*path_components):
      """
      Returns a path relative to the directory this file is in
      """
      base = os.path.abspath(os.path.dirname(__file__))
      all_parts = [base] + list(path_components)
      return os.path.realpath(os.path.join(*all_parts))
function_tokens: def relative ( * path_components ) : base = os . path . abspath ( os . path . dirname ( __file__ ) ) all_parts = [ base ] + list ( path_components ) return os . path . realpath ( os . path . join ( * all_parts ) )