Remove dependence of wrapper on old gym
This commit is contained in:
parent
14a95eb5ca
commit
27f8335a0d
@ -1,5 +1,8 @@
|
||||
from gymnasium.spaces import Box, Dict, flatten, flatten_space
|
||||
from gym.spaces import Box as OldBox
|
||||
try:
|
||||
from gym.spaces import Box as OldBox
|
||||
except ImportError:
|
||||
OldBox = None
|
||||
import gymnasium as gym
|
||||
import numpy as np
|
||||
import copy
|
||||
|
Loading…
Reference in New Issue
Block a user