mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Code review changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from os import path
|
||||
import os
|
||||
from pathlib import Path
|
||||
SRC_DIR = Path(__file__).parent
|
||||
|
||||
@@ -6,7 +6,7 @@ def load_prompt():
|
||||
"""Load the prompt from data/prompt.txt"""
|
||||
try:
|
||||
# get directory of this file:
|
||||
file_dir = Path(path.dirname(path.realpath(__file__)))
|
||||
file_dir = Path(os.path.dirname(os.path.realpath(__file__)))
|
||||
data_dir = file_dir / "data"
|
||||
prompt_file = data_dir / "prompt.txt"
|
||||
# Load the promt from data/prompt.txt
|
||||
|
||||
Reference in New Issue
Block a user