def brain(): localmemdir = os.path.join(os.getcwd(), "memory") if os.path.exists(localmemdir): tl.log(1, "memory entact") else: tl.log(1, "memory directory not found") tl.log(1, "default memory being constructed...") defmemdir = tl.respath("defaultmemory") shutil.copytree(defmemdir, localmemdir) tl.log(1, "default memory constructed locally")
def manager(f): settingspath = tl.respath(f) smngr = settings_manager(settingspath) return smngr