/usr/share/doc/python-scitools/examples/runall.py is in python-scitools 0.9.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/usr/bin/env python
import glob, os, sys
demos = glob.glob('*.py')
avoid = 'runall.py',
for filename in avoid:
demos.remove(filename)
from scitools.std import backend
try:
backend = sys.argv[1]
except IndexError:
pass
for filename in sorted(demos):
answer = raw_input(filename + '? ')
if answer.lower() == 'n':
continue
if 'matlab' in filename and not backend.startswith('matlab'):
continue
if ('isosurf' in filename or 'streamtube' in filename or \
'slice' in filename or 'contourslice' in filename) and \
backend in ('gnuplot', 'grace', 'matplotlib',):
continue
cmd = 'python %s --SCITOOLS_easyviz_backend %s' % (filename, backend)
failure = os.system(cmd)
# surf_demo2
|