From c52fcb4a65c516a3e8f21a39de899fb88eb5fb7a Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Tue, 16 Oct 2012 11:26:53 -0700 Subject: Updating md render script --- scripts/md/render.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/md/render.py') diff --git a/scripts/md/render.py b/scripts/md/render.py index c634ea0..fe667d8 100755 --- a/scripts/md/render.py +++ b/scripts/md/render.py @@ -1,11 +1,12 @@ -#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python +#!/usr/bin/env python + import codecs import re import jinja2 import markdown def process_slides(): - with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile: + with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print len(md_slides) -- cgit v1.2.3