19 lines
520 B
Python
19 lines
520 B
Python
import os
|
|
import sys
|
|
|
|
|
|
def main() -> None:
|
|
# MCP-сервер запускается этим же бинарником в режиме stdio.
|
|
if "--xenith-fs-server" in sys.argv:
|
|
from XUI.core.mcp.fs_server import main as fs_main
|
|
argv = [arg for arg in sys.argv[1:] if arg != "--xenith-fs-server"]
|
|
raise SystemExit(fs_main(argv))
|
|
|
|
from XUI.app import App
|
|
app = App(show_splash=os.environ.get("XENITH_NO_SPLASH") != "1")
|
|
app.mainloop()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|