load environment asap so that other files have it available

This commit is contained in:
LeonOstrez
2023-09-09 09:53:48 +02:00
committed by GitHub
parent 026eb69f2c
commit b780a9f19c

View File

@@ -3,6 +3,7 @@ from __future__ import print_function, unicode_literals
import sys
from dotenv import load_dotenv
load_dotenv()
from termcolor import colored
from helpers.Project import Project
from utils.arguments import get_arguments
@@ -10,8 +11,6 @@ from utils.exit import exit_gpt_pilot
from logger.logger import logger
from database.database import database_exists, create_database, tables_exist, create_tables
load_dotenv()
def init():
# Check if the "euclid" database exists, if not, create it