Merge pull request #1532 from cedspam/patch-1
avoid errors in some ide docs system
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
from gym.envs.registration import registry, register, make, spec
|
import gym
|
||||||
|
from gym.envs.registration import registry, make, spec
|
||||||
|
def register(id,*args,**kvargs):
|
||||||
|
if id in registry.env_specs:
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
return gym.envs.registration.register(id,*args,**kvargs)
|
||||||
|
|
||||||
# ------------bullet-------------
|
# ------------bullet-------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user