mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-24 12:45:45 +00:00
19 lines
441 B
Python
19 lines
441 B
Python
"""The app package.
|
|
|
|
This package will not be uploaded to PyPI. So, your can't import it if some other package depends on it.
|
|
"""
|
|
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
|