]> crepu.dev Git - config.git/blob - djavu-asus/elpa/elpy-20230803.1455/elpy/__main__.py
Actualizado el Readme
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy / __main__.py
1 """Main interface to the RPC server.
2
3 You should be able to just run the following to use this module:
4
5 python -m elpy
6
7 The first line should be "elpy-rpc ready". If it isn't, something
8 broke.
9
10 """
11
12 import os
13 import sys
14
15 import elpy
16 from elpy.server import ElpyRPCServer
17
18 if __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()