mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-28 21:12:13 +00:00
18 lines
314 B
Python
18 lines
314 B
Python
import os
|
|
import random
|
|
import sys
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
|
|
print("Setting random seed to 42")
|
|
random.seed(42)
|
|
|
|
# Load the users .env file into environment variables
|
|
load_dotenv(verbose=True, override=True)
|
|
|
|
del load_dotenv
|
|
|
|
|