Mercurial > hg > dotemacs
view elpa/elpy-1.26.0/elpy/__main__.py @ 183:3de719fb264a
elpy: version 1.26
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 21 Nov 2018 14:39:16 -0500 |
parents | elpa/elpy-1.25.0/elpy/__main__.py@c3bd84985977 |
children |
line wrap: on
line source
"""Main interface to the RPC server. You should be able to just run the following to use this module: python -m elpy The first line should be "elpy-rpc ready". If it isn't, something broke. """ import os import sys import elpy from elpy.server import ElpyRPCServer if __name__ == '__main__': stdin = sys.stdin stdout = sys.stdout sys.stdout = sys.stderr = open(os.devnull, "w") stdout.write('elpy-rpc ready ({0})\n' .format(elpy.__version__)) stdout.flush() ElpyRPCServer(stdin, stdout).serve_forever()