def namesplit(s):
    """
    Split package name at the position of dot '.'.

    Examples:
        'module.submodule' =>  ['module', 'submodule']
        'module'           =>  ['module']
        ''                 =>  []
    """
    rslt = []
    # Ensure that for empty string '' an empty list is returned.
    if s:
        rslt = s.split('.')
    return rslt