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.
make the path reference in logger more robust
Mike Kelly475edd3b40c8
diff --git a/scripts/logger.py b/scripts/logger.pyindex 91bdb6f605..4c7e588f20 100644--- a/scripts/logger.py+++ b/scripts/logger.py@@ -24,7 +24,8 @@ For console handler: simulates typingclass Logger(metaclass=Singleton):def __init__(self):# create log directory if it doesn't exist- log_dir = os.path.join('..', 'logs')+ this_files_dir_path = os.path.dirname(__file__)+ log_dir = os.path.join(this_files_dir_path, '../logs')if not os.path.exists(log_dir):os.makedirs(log_dir)