Commit 5f95ad56 authored by Jérome Perrin's avatar Jérome Perrin

patches: a "more compatible" docutils.utils.relative_path

Previous monkey patch was not compatible with sphinx and sphinx was not
compying the theme files in _static directory.
parent 8ab93bc5
......@@ -89,7 +89,11 @@ if 1:
# Workaround bad use of getcwd() in docutils.
# Required by PortalTransforms.transforms.rest
from docutils import utils
utils.relative_path = lambda source, target: os.path.abspath(target)
def relative_path(source, target):
if not source:
return os.path.abspath(target)
return os.path.relpath(source, target)
utils.relative_path = relative_path
def patch_linecache():
import linecache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment