mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Move shutil in
This commit is contained in:
@@ -3,7 +3,6 @@ import io
|
||||
import json
|
||||
import multiprocessing
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -215,6 +214,7 @@ class FlexiblePythonExecutionBlock(Block):
|
||||
os.unlink(temp_file.name)
|
||||
|
||||
def __del__(self):
|
||||
import shutil # noqa: E402
|
||||
shutil.rmtree(self.venv_path, ignore_errors=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user