mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-25 09:54:23 +01:00
* The unlooping and fixing of file execution. * lint * Use static random seed during testing. remove unused import. * Fix bug * Actually fix bug. * lint * Unloop a bit more an fix json. * Fix another bug. * lint. --------- Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
15 lines
311 B
Python
15 lines
311 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
|