Spaces:
Running
Running
File size: 739 Bytes
ff293b1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
"""Ghostexec Environment."""
from .models import GhostexecAction, GhostexecObservation
# Importing ghostexec.models in notebooks should not require websocket client deps.
# Keep client import optional so package imports survive OpenEnv layout differences.
try:
from .client import GhostexecEnv
except Exception: # pragma: no cover - import-compat shim
GhostexecEnv = None # type: ignore[assignment]
__all__ = ["GhostexecAction", "GhostexecObservation"]
if GhostexecEnv is not None:
__all__.append("GhostexecEnv")
|