File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323# Support both in-repo and standalone imports
2424try :
25- # In-repo imports (when running from OpenEnv repository)
26- from core .env_server .interfaces import Environment
27- from core .env_server .types import State
25+ # Package import path used by installed envs and PYTHONPATH=src:envs.
26+ from openenv . core .env_server .interfaces import Environment
27+ from openenv . core .env_server .types import State
2828
2929 from ..models import SnakeAction , SnakeObservation
3030except ImportError :
31+ # Direct execution from envs/snake_env.
3132 from models import SnakeAction , SnakeObservation
3233
3334 try :
34- # Standalone imports with the current openenv package namespace
3535 from openenv .core .env_server .interfaces import Environment
3636 from openenv .core .env_server .types import State
3737 except ImportError :
38- # Backward-compatible standalone imports with the legacy namespace
38+ # Backward-compatible standalone imports with the legacy namespace.
3939 from openenv_core .env_server .interfaces import Environment
4040 from openenv_core .env_server .types import State
4141
You can’t perform that action at this time.
0 commit comments