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.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to