mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Settings were being saved and loaded in the wrong directory
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import yaml
|
import yaml
|
||||||
import data
|
import data
|
||||||
|
import os
|
||||||
|
|
||||||
class AIConfig:
|
class AIConfig:
|
||||||
def __init__(self, ai_name="", ai_role="", ai_goals=[]):
|
def __init__(self, ai_name="", ai_role="", ai_goals=[]):
|
||||||
@@ -9,7 +9,7 @@ class AIConfig:
|
|||||||
self.ai_goals = ai_goals
|
self.ai_goals = ai_goals
|
||||||
|
|
||||||
# Soon this will go in a folder where it remembers more stuff about the run(s)
|
# Soon this will go in a folder where it remembers more stuff about the run(s)
|
||||||
SAVE_FILE = "../ai_settings.yaml"
|
SAVE_FILE = os.path.join(os.path.dirname(__file__), '..', 'ai_settings.yaml')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load(cls, config_file=SAVE_FILE):
|
def load(cls, config_file=SAVE_FILE):
|
||||||
|
|||||||
Reference in New Issue
Block a user