calibre-web/cps.py
OzzieIsaacs 404b29b979 Refactored WSGIServer handling
Restart of gevent server now working
2018-07-09 18:47:36 +02:00

21 lines
376 B
Python
Executable file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
base_path = os.path.dirname(os.path.abspath(__file__))
# Insert local directories into path
sys.path.append(base_path)
sys.path.append(os.path.join(base_path, 'cps'))
sys.path.append(os.path.join(base_path, 'vendor'))
from cps.server import Server
if __name__ == '__main__':
Server.startServer()