Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 658457d

Browse files
committed
added windows support
svn path=/trunk/matplotlib/; revision=2730
1 parent bed200a commit 658457d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/backend_driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def drive(backend, python='python2.4'):
134134
# backends = [ 'GTK', 'WX', 'TkAgg']
135135
default_backends = ['Agg', 'PS', 'SVG', 'Template']
136136
#backends = ['Agg']
137-
python = 'python2.4'
137+
if sys.platform == 'win32':
138+
python = r'c:\Python24\python.exe'
139+
else:
140+
python = 'python2.4'
138141
if sys.argv[1:]:
139142
backends = [b for b in sys.argv[1:] if b in default_backends]
140143
else:

0 commit comments

Comments
 (0)