def _check_config():
config.CONFIG_DIR.mkdir(parents=True, exist_ok=True)<EOL>verfile = config.CONFIG_DIR / '<STR_LIT>'<EOL>uptodate = verfile.is_file() and verfile.read_text() == __version__<EOL>if not uptodate:<EOL><INDENT>verfile.write_text(__version__)<EOL><DEDENT>if not (uptodate and config.CONFIG_FILE.is_file()):<EOL><INDENT>conf.create_config_(update=True)<EOL><DEDENT>for stfile in ('<STR_LIT>',<EOL>'<STR_LIT>'):<EOL><INDENT>stfile_conf = config.CONFIG_DIR / stfile<EOL>if not (uptodate and stfile_conf.is_file()):<EOL><INDENT>stfile_local = pathlib.Path(__file__).parent / stfile<EOL>shutil.copy(str(stfile_local), str(stfile_conf))<EOL><DEDENT><DEDENT>
Create config files as necessary.