changeset 6:ac78e26cd568

starting on web example; i have to understand more about shebangs
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 10 Nov 2010 18:11:11 -0800
parents f064be514e53
children 324a70edb73c
files makeitso/makeitso.py web-example.txt
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- /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}}