# HG changeset patch # User Jeff Hammel # Date 1289441471 28800 # Node ID ac78e26cd568ddafd71484e01a8acf885b8747d6 # Parent f064be514e53219a51d3fd9cb0bd2faa11db5f45 starting on web example; i have to understand more about shebangs diff -r f064be514e53 -r ac78e26cd568 makeitso/makeitso.py --- a/makeitso/makeitso.py Wed Nov 10 18:01:07 2010 -0800 +++ b/makeitso/makeitso.py Wed Nov 10 18:11:11 2010 -0800 @@ -14,6 +14,10 @@ shebang_re = '#!.*makeitso.*' shebang_re = re.compile(shebang_re) +class MissingVariablesException(Exception): + def __init__(self, message, missing): + self.missing = missing + def call(command, *args, **kw): code = subprocess.call(command, *args, **kw) if code: diff -r f064be514e53 -r ac78e26cd568 web-example.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web-example.txt Wed Nov 10 18:11:11 2010 -0800 @@ -0,0 +1,3 @@ +#!/bin/cat /home/jhammel/stage/src/MakeItSo/makeitso/makeitso.py | python - + +Hello {{name}}