diff options
author | 2013-08-17 21:18:07 +0200 | |
---|---|---|
committer | 2013-08-17 21:18:07 +0200 | |
commit | 12799b9ddd0ab1bb34cb1aa433d5d24ad8dec1ba (patch) | |
tree | 45b931aecdb7c20dec8c49a8b5ecfd8759ff4ad4 /hypo.hy | |
parent | e73ca5556f4aae9a78ef083203352fd334b0aa60 (diff) | |
download | hypo-12799b9ddd0ab1bb34cb1aa433d5d24ad8dec1ba.tar.gz hypo-12799b9ddd0ab1bb34cb1aa433d5d24ad8dec1ba.zip |
Add hypoctl script
Will be used to control certain server-side aspects of hypo.
Diffstat (limited to 'hypo.hy')
-rwxr-xr-x | hypo.hy | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -137,7 +137,7 @@ If no lexer is found fallback onto the text lexer." (setv web.ctx.status (str "201 Created")) (+ web.ctx.home "/" *prefix* (get h 0) "\n")))]]) -(when (= __name__ "__main__") - (let ((sys.argv (slice sys.argv 1)) +(defun hypo-start [argv] + (let ((sys.argv (cdr (cdr sys.argv))) (app (web.application urls (globals)))) (.run app))) |