def _get_stack_depth(package, fqdn, defdepth=_def_stackdepth):
global _stack_config<EOL>if package not in _stack_config:<EOL><INDENT>from acorn.config import settings<EOL>spack = settings(package)<EOL>_stack_config[package] = {}<EOL>secname = "<STR_LIT>"<EOL>if spack.has_section(secname):<EOL><INDENT>for ofqdn in spack.options(secname):<EOL><INDENT>_stack_config[package][ofqdn] = spack.getint(secname, ofqdn)<EOL><DEDENT><DEDENT><DEDENT>usedef = True<EOL>if fqdn in _stack_config[package]:<EOL><INDENT>result = _stack_config[package][fqdn]<EOL>usedef = False<EOL><DEDENT>elif "<STR_LIT:*>" in _stack_config[package]: <EOL><INDENT>result = _stack_config[package]["<STR_LIT:*>"]<EOL>usedef = False<EOL><DEDENT>else:<EOL><INDENT>result = defdepth<EOL><DEDENT>if not usedef:<EOL><INDENT>msg.gen("<STR_LIT>".format(result, fqdn), <NUM_LIT:3>)<EOL><DEDENT>return result<EOL>
Loads the stack depth settings from the config file for the specified
    package.

    Args:
        package (str): name of the package to get stack depth info for.
        fqdn (str): fully qualified domain name of the member in the package.
        defdepth (int): default depth when one has not been configured.