Skip to content

Commit

Permalink
Deprecation warning gym_minigrid (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodelazcano authored Sep 15, 2022
1 parent 5142806 commit 5a660dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gym_minigrid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
from warnings import warn

from gym.envs.registration import register

from gym_minigrid import minigrid, roomgrid, wrappers


def register_minigrid_envs():

# gym_minigrid package deprecated in favor of minigrid
warn(
"The package name gym_minigrid has been deprecated in favor of minigrid. Please uninstall gym_minigrid and install minigrid with `pip install minigrid`. Future releases will be maintained under the new package name minigrid.",
DeprecationWarning,
stacklevel=2,
)

# BlockedUnlockPickup
# ----------------------------------------

Expand Down

0 comments on commit 5a660dd

Please sign in to comment.