mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 06:07:08 +00:00
15 lines
460 B
Python
15 lines
460 B
Python
"""This utility file contains an environment that is registered upon loading the file."""
|
|
|
|
import gymnasium as gym
|
|
|
|
|
|
class RegisterDuringMakeEnv(gym.Env):
|
|
"""Used in `test_registration.py` to check if `env.make` can import and register an env"""
|
|
|
|
def __init__(self):
|
|
self.action_space = gym.spaces.Discrete(1)
|
|
self.observation_space = gym.spaces.Discrete(1)
|
|
|
|
|
|
gym.register(id="RegisterDuringMake-v0", entry_point=RegisterDuringMakeEnv)
|