def config_dir(mkcustom=False):
from acorn.utility import reporoot<EOL>from acorn.base import testmode<EOL>from os import path<EOL>alternate = path.join(path.abspath(path.expanduser("<STR_LIT>")), "<STR_LIT>")<EOL>if testmode or (not path.isdir(alternate) and not mkcustom):<EOL><INDENT>return path.join(reporoot, "<STR_LIT>", "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>if mkcustom:<EOL><INDENT>from os import mkdir<EOL>mkdir(alternate)<EOL><DEDENT>return alternate<EOL><DEDENT>
Returns the configuration directory for custom package settings.