diff --git a/src/ai/tools/python-interpretator.ts b/src/ai/tools/python-interpretator.ts index bc62e65..df9b3c2 100644 --- a/src/ai/tools/python-interpretator.ts +++ b/src/ai/tools/python-interpretator.ts @@ -1,5 +1,5 @@ import {spawn} from "node:child_process"; -import {copyFile, lstat, mkdir, readdir, writeFile} from "node:fs/promises"; +import {copyFile, lstat, mkdir, readdir, rm, writeFile} from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import {AiTool} from "../tool-types"; @@ -439,10 +439,10 @@ async function executePythonCode( error: errorToString(error), }; } finally { - // await rm(tempDir, { - // recursive: true, - // force: true, - // }); + await rm(tempDir, { + recursive: true, + force: true, + }); } }