eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 315 forks source link

Error embedding stylesheet when regenerating sites using restructuredtext template tag #40

Open JoshRosen opened 11 years ago

JoshRosen commented 11 years ago

When I run cactus serve on a site using the restructuredtext template tag, the page fails to rebuild due to the following error:

Building index.html<string>:: (ERROR/3) Cannot embed stylesheet '../env/lib/python2.7/site-packages/docutils/writers/html4css1/html4css1.css': No such file or directory.
*** Error while building[Errno 2] No such file or directory: '../env/lib/python2.7/site-packages/docutils/writers/html4css1/template.txt'

It looks like docutils is using a relative path to embed its stylesheets. The regeneration fails because Cactus changes its working directory using os.chdir() prior to serving pages.

ohadperry commented 7 years ago

+1