def get(path, name):
    '\n    Args:\n        path (string): Directory where the entry point is located.\n        name (string): Name of the entry point file.\n\n    Returns:\n        (_EntryPointType): The type of the entry point.\n    '
    if name.endswith('.sh'):
        return _EntryPointType.COMMAND
    elif ('setup.py' in os.listdir(path)):
        return _EntryPointType.PYTHON_PACKAGE
    elif name.endswith('.py'):
        return _EntryPointType.PYTHON_PROGRAM
    else:
        return _EntryPointType.COMMAND
Args:
    path (string): Directory where the entry point is located.
    name (string): Name of the entry point file.

Returns:
    (_EntryPointType): The type of the entry point.
def get(path, name):
    '\n    Args:\n        path (string): Directory where the entry point is located.\n        name (string): Name of the entry point file.\n\n    Returns:\n        (_EntryPointType): The type of the entry point.\n    '
    if name.endswith('.sh'):
        return _EntryPointType.COMMAND
    elif ('setup.py' in os.listdir(path)):
        return _EntryPointType.PYTHON_PACKAGE
    elif name.endswith('.py'):
        return _EntryPointType.PYTHON_PROGRAM
    else:
        return _EntryPointType.COMMAND