mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Prefer settings in .env over environment variables
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
load_dotenv(override=True)
|
||||
from database.database import create_tables, drop_tables
|
||||
|
||||
drop_tables()
|
||||
|
||||
@@ -22,7 +22,7 @@ except ImportError:
|
||||
print(f'Please run `{sys.executable} -m pip install -r {requirements_path}` to finish Python setup, and rerun GPT Pilot.')
|
||||
sys.exit(-1)
|
||||
|
||||
load_dotenv()
|
||||
load_dotenv(override=True)
|
||||
|
||||
from utils.style import color_red
|
||||
from utils.custom_print import get_custom_print
|
||||
|
||||
@@ -8,7 +8,7 @@ from typing import Any, Optional
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
load_dotenv(override=True)
|
||||
|
||||
log = getLogger(__name__)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ from utils.llm_connection import create_gpt_chat_completion, stream_gpt_completi
|
||||
assert_json_response, assert_json_schema, clean_json_response, retry_on_exception
|
||||
from main import get_custom_print
|
||||
|
||||
load_dotenv()
|
||||
load_dotenv(override=True)
|
||||
os.environ.pop("AUTOFIX_FILE_PATHS", None)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user