aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/autogpt/__init__.py')
-rw-r--r--autogpts/autogpt/autogpt/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt/__init__.py b/autogpts/autogpt/autogpt/__init__.py
new file mode 100644
index 000000000..251826fcd
--- /dev/null
+++ b/autogpts/autogpt/autogpt/__init__.py
@@ -0,0 +1,7 @@
+import os
+import random
+import sys
+
+if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
+ print("Setting random seed to 42")
+ random.seed(42)