(base_package, directory, name)
Check if given controller already exists in project.
Check if given controller already exists in project.
Check if given controller already exists in project .
def check_controller_existence(base_package, directory, name):
    """Check if given controller already exists in project."""
    filename = os.path.join(base_package, 'controllers', directory,
                            name + '.py')
    if os.path.exists(filename):
        raise BadCommand('Controller %s already exists.' %
                         os.path.join(directory, name))
def check_controller_existence ( base_package , directory , name ) : filename = os . path . join ( base_package , 'controllers' , directory , name + '.py' ) if os . path . exists ( filename ) : raise BadCommand ( 'Controller %s already exists.' % os . path . join ( directory , name ) )