aboutsummaryrefslogtreecommitdiffstats
path: root/hypo.hy
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-17 21:18:07 +0200
committerGravatar Tom Willemse2013-08-17 21:18:07 +0200
commit12799b9ddd0ab1bb34cb1aa433d5d24ad8dec1ba (patch)
tree45b931aecdb7c20dec8c49a8b5ecfd8759ff4ad4 /hypo.hy
parente73ca5556f4aae9a78ef083203352fd334b0aa60 (diff)
downloadhypo-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-xhypo.hy4
1 files changed, 2 insertions, 2 deletions
diff --git a/hypo.hy b/hypo.hy
index 05fa858..8053488 100755
--- a/hypo.hy
+++ b/hypo.hy
@@ -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)))