Skip to content

Commit 6b308b7

Browse files
committed
add envvar option to skip prompt
1 parent 9167d62 commit 6b308b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

multiagent/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import warnings
23

34
from gym.envs.registration import register
@@ -26,4 +27,6 @@
2627
"support for installation via pip, and numerous other large quality of life improvements. \nWe "
2728
"encourage researchers to switch to this maintained version for all purposes other than comparing "
2829
"to results run on this version of the environments. \n")
29-
input("Please read the raised warning, then press Enter to continue...\n")
30+
31+
if os.getenv('SUPPRESS_MA_PROMPT') != '1':
32+
input("Please read the raised warning, then press Enter to continue... (to suppress this prompt, please set the environment variable `SUPPRESS_MA_PROMPT=1`)\n")

0 commit comments

Comments
 (0)