mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-17 14:17:29 -04:00
33 lines
763 B
Python
Executable File
33 lines
763 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys,re,os
|
|
|
|
print "Running txt2myt.py..."
|
|
execfile("txt2myt.py")
|
|
|
|
print "Generating docstring data"
|
|
execfile("compile_docstrings.py")
|
|
|
|
component_root = [
|
|
{'components': './components'},
|
|
{'content' : './content'}
|
|
]
|
|
doccomp = ['document_base.myt']
|
|
output = os.path.dirname(os.getcwd())
|
|
|
|
sys.path = ['./lib/'] + sys.path
|
|
|
|
import myghty.http.HTTPServerHandler as HTTPServerHandler
|
|
|
|
httpd = HTTPServerHandler.HTTPServer(
|
|
port = 8080,
|
|
|
|
handlers = [
|
|
{'.*(?:\.myt|/$)' : HTTPServerHandler.HSHandler(path_translate=[(r'^/$', r'/index.myt')], data_dir = './cache', component_root = component_root)},
|
|
],
|
|
|
|
docroot = [{'.*' : '../'}],
|
|
|
|
)
|
|
|
|
httpd.serve_forever()
|