parameters: (path)
return_statement: return slug, abspath
docstring: Parse the path into abspath and slug
docstring_summary: Parse the path into abspath and slug
docstring_tokens: Parse the path into abspath and slug
function: def parse_path(path):
      """
      Parse the path into abspath and slug
      """
      bits = path.split('/')
      if len(bits) > 1:
          slug = bits[-1]
          path = '/'.join(bits[:-1])
          abspath = os.path.abspath(path)
      else:
          slug = path
          abspath = app_config.GRAPHICS_PATH
      return slug, abspath
function_tokens: def parse_path ( path ) : bits = path . split ( '/' ) if len ( bits ) > 1 : slug = bits [ - 1 ] path = '/' . join ( bits [ : - 1 ] ) abspath = os . path . abspath ( path ) else : slug = path abspath = app_config . GRAPHICS_PATH return slug , abspath