(package, fail_fast=False)
return minimal_template
Determine if the specified Pylons project (package) uses the
    Pylons Minimal Template.

    fail_fast causes ImportErrors encountered during detection to be
    raised.
Determine if the specified Pylons project (package) uses the
    Pylons Minimal Template.
Determine if the specified Pylons project ( package ) uses the Pylons Minimal Template .
def is_minimal_template(package, fail_fast=False):
    """Determine if the specified Pylons project (package) uses the
    Pylons Minimal Template.

    fail_fast causes ImportErrors encountered during detection to be
    raised.
    """
    minimal_template = False
    try:
        # Check if PACKAGE.lib.base exists
        __import__(package + '.lib.base')
    except ImportError, ie:
        if 'No module named lib.base' in str(ie):
            minimal_template = True
    except:
        # PACKAGE.lib.base exists but throws an error
        if fail_fast:
            raise
    return minimal_template
def is_minimal_template ( package , fail_fast = False ) : minimal_template = False try : # Check if PACKAGE.lib.base exists __import__ ( package + '.lib.base' ) except ImportError , ie : if 'No module named lib.base' in str ( ie ) : minimal_template = True except : # PACKAGE.lib.base exists but throws an error if fail_fast : raise return minimal_template