DIALECTICA / server /app.py
padmanabhansb08
Initial commit: Echo env (src layout)
94d2802
raw
history blame contribute delete
564 Bytes
# 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.
"""Backward-compatible shim for `openenv.yaml`'s `server.app:app`."""
from __future__ import annotations
import os
import sys
_ROOT = os.path.dirname(os.path.dirname(__file__))
_SRC = os.path.join(_ROOT, "src")
if os.path.isdir(_SRC) and _SRC not in sys.path:
sys.path.insert(0, _SRC)
from echo_env.server.app import app, main # noqa: E402,F401