123456789101112131415 |
- import connection
- import db
- import subprocess
- from bottle import run, post, request, response, get, route
- if __name__ == '__main__':
- print('sqlite3.version', db.db.version)
- db.setup()
- @route('/<path>', method='POST')
- def process(path):
- return subprocess.check_output(['python', path + '.py'], shell=True)
- run(host='localhost', port=connection.port, debug=True)
|