Exemple #1
0
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")
Exemple #2
0
def manager(f):
    settingspath = tl.respath(f)
    smngr = settings_manager(settingspath)
    return smngr