|
From: <lee...@us...> - 2009-10-19 09:02:16
|
Revision: 7893
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7893&view=rev
Author: leejjoon
Date: 2009-10-19 09:02:08 +0000 (Mon, 19 Oct 2009)
Log Message:
-----------
fix a bug in plot_directive
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/sphinxext/plot_directive.py
Modified: branches/v0_99_maint/lib/matplotlib/sphinxext/plot_directive.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/sphinxext/plot_directive.py 2009-10-19 06:50:44 UTC (rev 7892)
+++ branches/v0_99_maint/lib/matplotlib/sphinxext/plot_directive.py 2009-10-19 09:02:08 UTC (rev 7893)
@@ -81,7 +81,10 @@
i+=1
rel_list = [os.pardir] * (len(base_list)-i) + target_list[i:]
- return os.path.join(*rel_list)
+ if rel_list:
+ return os.path.join(*rel_list)
+ else:
+ return ""
def write_char(s):
sys.stdout.write(s)
@@ -263,7 +266,7 @@
outdir = os.path.join('plot_directive', basedir)
reldir = relpath(setup.confdir, rstdir)
linkdir = os.path.join(reldir, outdir)
-
+
# tmpdir is where we build all the output files. This way the
# plots won't have to be redone when generating latex after html.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|