AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Update execute_code.py
Andres Caicedod450ac3a0b48
diff --git a/scripts/execute_code.py b/scripts/execute_code.pyindex f34469dda8..22ae104746 100644--- a/scripts/execute_code.py+++ b/scripts/execute_code.py@@ -1,5 +1,5 @@import docker-import os+from os import pathdef execute_python_file(file):@@ -11,9 +11,9 @@ def execute_python_file(file):if not file.endswith(".py"):return "Error: Invalid file type. Only .py files are allowed."- file_path = os.path.join(workspace_folder, file)+ file_path = path.join(workspace_folder, file)- if not os.path.isfile(file_path):+ if not path.isfile(file_path):return f"Error: File '{file}' does not exist."try: