/usr/share/pyshared/mayavi/version.py is in mayavi2 4.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | # Wrapped in a try/except in those situations where someone hasn't installed
# as an egg. What do we do then? For now, we just punt since we don't want
# to define the version number in two places.
try:
import pkg_resources
version = pkg_resources.require('Mayavi')[0].version
except:
version = ''
|