Skip to content

Commit

Permalink
add envvar option to skip prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
WillDudley committed Jan 4, 2023
1 parent 9167d62 commit 6b308b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion multiagent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import warnings

from gym.envs.registration import register
Expand Down Expand Up @@ -26,4 +27,6 @@
"support for installation via pip, and numerous other large quality of life improvements. \nWe "
"encourage researchers to switch to this maintained version for all purposes other than comparing "
"to results run on this version of the environments. \n")
input("Please read the raised warning, then press Enter to continue...\n")

if os.getenv('SUPPRESS_MA_PROMPT') != '1':
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 comments on commit 6b308b7

Please sign in to comment.