summaryrefslogtreecommitdiff
path: root/nose
diff options
context:
space:
mode:
authorjpellerin <devnull@localhost>2010-11-08 11:04:46 -0500
committerjpellerin <devnull@localhost>2010-11-08 11:04:46 -0500
commitb868e9890340d764ff7953abacc098d958b381e8 (patch)
treed3d3776406147d554e7cb07a3b10080be649b68f /nose
parent427dc17e1a257578f5b0b6713ae81d6bd6ddf232 (diff)
downloadnose-b868e9890340d764ff7953abacc098d958b381e8.tar.gz
Fixed some environmental differences and a MANIFEST omission
Diffstat (limited to 'nose')
-rw-r--r--nose/sphinx/pluginopts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nose/sphinx/pluginopts.py b/nose/sphinx/pluginopts.py
index 587a4e8..9b88eeb 100644
--- a/nose/sphinx/pluginopts.py
+++ b/nose/sphinx/pluginopts.py
@@ -30,6 +30,7 @@ produces::
:literal:
"""
+import os
try:
from docutils import nodes
from docutils.statemachine import ViewList
@@ -90,7 +91,8 @@ def autoplugin_directive(dirname, arguments, options, content, lineno,
# source
rst.append('Source', '<autodoc>')
rst.append('------', '<autodoc>')
- rst.append('.. include :: %s\n' % mod.__file__.replace('.pyc', '.py'),
+ rst.append('.. include :: %s\n' % os.path.relpath(
+ mod.__file__.replace('.pyc', '.py'), os.getcwd()),
'<autodoc>')
rst.append(' :literal:\n', '<autodoc>')
rst.append('', '<autodoc>')