Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
551 B

4 years ago
  1. """Main interface to the RPC server.
  2. You should be able to just run the following to use this module:
  3. python -m elpy
  4. The first line should be "elpy-rpc ready". If it isn't, something
  5. broke.
  6. """
  7. import os
  8. import sys
  9. import elpy
  10. from elpy.server import ElpyRPCServer
  11. if __name__ == '__main__':
  12. stdin = sys.stdin
  13. stdout = sys.stdout
  14. sys.stdout = sys.stderr = open(os.devnull, "w")
  15. stdout.write('elpy-rpc ready ({0})\n'
  16. .format(elpy.__version__))
  17. stdout.flush()
  18. ElpyRPCServer(stdin, stdout).serve_forever()