aboutsummaryrefslogtreecommitdiffstats
path: root/pycco
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2010-07-09 11:49:17 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2010-07-09 11:49:17 -0700
commit0e64b7c0933a1993dc3d31770c1550cea4d10f04 (patch)
tree7dc5fb9d5933f0e014cf5398db095bf1c806d3d9 /pycco
parent1937035182b4a8dae63252a0856b4d8e3df4e64d (diff)
downloadpycco-0e64b7c0933a1993dc3d31770c1550cea4d10f04.tar.gz
pycco-0e64b7c0933a1993dc3d31770c1550cea4d10f04.zip
Moving the resources in to their own module to ensure that setup.py installs
them correctly.
Diffstat (limited to 'pycco')
-rwxr-xr-xpycco9
1 files changed, 5 insertions, 4 deletions
diff --git a/pycco b/pycco
index bc1ce3f..e9a4866 100755
--- a/pycco
+++ b/pycco
@@ -110,6 +110,9 @@ def generate_html(source, sections):
#### Helpers & Setup
+# This module contains all of our static resources.
+import pycco_resources
+
# Import our external dependencies.
import pygments
import pystache
@@ -188,12 +191,10 @@ def template(source):
return lambda context: pystache.render(source, context)
# Create the template that we will use to generate the Pycco HTML page.
-pycco_template = template(open(path.join(path.dirname(__file__),
- "resources/pycco.html")).read())
+pycco_template = template(pycco_resources.html)
# The CSS styles we"d like to apply to the documentation.
-pycco_styles = open(path.join(path.dirname(__file__),
- "resources/pycco.css")).read()
+pycco_styles = pycco_resources.css
# The start of each Pygments highlight block.
highlight_start = "<div class=\"highlight\"><pre>"