]> crepu.dev Git - config.git/blame - djavu-asus/elpa/elpy-20230803.1455/elpy/__main__.py
Configuracion en desarrollo PC pega
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / __main__.py
CommitLineData
53e6db90
DC
1"""Main interface to the RPC server.
2
3You should be able to just run the following to use this module:
4
5python -m elpy
6
7The first line should be "elpy-rpc ready". If it isn't, something
8broke.
9
10"""
11
12import os
13import sys
14
15import elpy
16from elpy.server import ElpyRPCServer
17
18if __name__ == '__main__':
19 stdin = sys.stdin
20 stdout = sys.stdout
21 sys.stdout = sys.stderr = open(os.devnull, "w")
22 stdout.write('elpy-rpc ready ({0})\n'
23 .format(elpy.__version__))
24 stdout.flush()
25 ElpyRPCServer(stdin, stdout).serve_forever()