Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env plugins, remove gym.envs.internal and replace with __internal__ key #2409

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Env plugins, remove gym.envs.internal and replace with __internal__ key #2409

merged 1 commit into from
Sep 16, 2021

Conversation

JesseFarebro
Copy link
Contributor

In the previous PR RE: the env plugin system, I think a design choice was made which doesn't make sense.

We should specify a function to execute, NOT a module to load. Creating modules is more of a pain when we a package maintainer could specify one module with multiple functions to call.

Secondly, we should remove the gym.envs.internal entry point and just have a special key of __internal__. This is much cleaner and doesn't require the use of an arbitrary key for gym.envs.internal that would never be used.

We also silently fail upon executing the plugin function so we don't crash Gym upon import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants