Revision: 5185
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5185&view=rev
Author: jdh2358
Date: 2008-05-17 14:57:19 -0700 (Sat, 17 May 2008)
Log Message:
-----------
fixed backend driver cleanup
Modified Paths:
--------------
trunk/matplotlib/examples/tests/backend_driver.py
Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py 2008-05-17 21:54:14 UTC
(rev 5184)
+++ trunk/matplotlib/examples/tests/backend_driver.py 2008-05-17 21:57:19 UTC
(rev 5185)
@@ -19,6 +19,9 @@
import os, time, sys, glob
import matplotlib.backends as mplbe
+all_backends = [b.lower() for b in mplbe.all_backends]
+all_backends.extend(['cairo.png', 'cairo.ps', 'cairo.pdf', 'cairo.svg'])
+
pylab_dir = os.path.join('..', 'pylab')
pylab_files = [
'alignment_test.py',
@@ -204,9 +207,9 @@
default_backends = ['Agg', 'PS', 'SVG', 'PDF', 'Template']
if len(sys.argv)==2 and sys.argv[1]=='--clean':
localdirs = [d for d in glob.glob('*') if os.path.isdir(d)]
- backends_lower = set([b.lower() for b in default_backends])
+ all_backends_set = set(all_backends)
for d in localdirs:
- if d.lower() in backends_lower:
+ if d.lower() in all_backends_set:
command = 'rm -rf %s'%d
# todo: implement python recursive remove
print 'executing: %s'%command
@@ -225,8 +228,6 @@
python = [r'c:\Python24\python.exe']
else:
python = ['python']
- all_backends = [b.lower() for b in mplbe.all_backends]
- all_backends.extend(['cairo.png', 'cairo.ps', 'cairo.pdf', 'cairo.svg'])
backends = []
switches = []
if sys.argv[1:]:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins