parameters: (path)
return_statement: return (None, path)
docstring: Splits the channel name out of |path|, returning the tuple
      (channel_name, real_path). If the channel cannot be determined then returns
      (None, path).
docstring_summary: Splits the channel name out of |path|, returning the tuple
      (channel_name, real_path). If the channel cannot be determined then returns
      (None, path).
docstring_tokens: Splits the channel name out of |path| returning the tuple ( channel_name real_path ) . If the channel cannot be determined then returns ( None path ) .
function: def SplitChannelNameFromPath(path):
      '''Splits the channel name out of |path|, returning the tuple
      (channel_name, real_path). If the channel cannot be determined then returns
      (None, path).
      '''
      if '/' in path:
        first, second = path.split('/', 1)
      else:
        first, second = (path, '')
      if first in BranchUtility.GetAllChannelNames():
        return (first, second)
      return (None, path)
function_tokens: def SplitChannelNameFromPath ( path ) : if '/' in path : first , second = path . split ( '/' , 1 ) else : first , second = ( path , '' ) if first in BranchUtility . GetAllChannelNames ( ) : return ( first , second ) return ( None , path )