File size: 504 Bytes
52ec3b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Shim for OpenEnv layout checks (``server/app.py`` is required when there is no
root ``Dockerfile``). The ASGI application is defined in ``app.py`` at the env root.
"""

from __future__ import annotations

try:
    from legal_contract_env.app import app, main as _root_main
except ImportError:
    from app import app, main as _root_main

__all__ = ["app", "main"]


def main() -> None:
    """Uvicorn entry; delegates to root ``app.main``."""
    _root_main()


if __name__ == "__main__":
    main()