mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 13:54:31 +00:00
Enable Legacy Warnings (#2617)
* Update pendulum.py * version warnings * black * try except * update notices version * Exception * nosec * black * no loop, stderr * black
This commit is contained in:
@@ -15,6 +15,19 @@ from gym import vector
|
||||
from gym import wrappers
|
||||
import os
|
||||
|
||||
|
||||
__all__ = ["Env", "Space", "Wrapper", "make", "spec", "register"]
|
||||
|
||||
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
|
||||
|
||||
try:
|
||||
import gym_notices.notices as notices
|
||||
import sys
|
||||
|
||||
# print version warning if necessary
|
||||
notice = notices.notices.get(__version__)
|
||||
if notice is not None:
|
||||
print(notice, file=sys.stderr)
|
||||
|
||||
except Exception: # nosec
|
||||
pass
|
||||
|
Reference in New Issue
Block a user