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.
don't depend on the path script is run from
Tom Viner1e892bfb0519
diff --git a/scripts/data.py b/scripts/data.pyindex 194735578e..62a36e1250 100644--- a/scripts/data.py+++ b/scripts/data.py@@ -1,7 +1,12 @@+from pathlib import Path++FOLDER = Path(__file__).parent++def load_prompt():try:# Load the promt from data/prompt.txt- with open("data/prompt.txt", "r") as prompt_file:+ with open(FOLDER / "data/prompt.txt", "r") as prompt_file:prompt = prompt_file.read()return prompt