This file is indexed.

/usr/lib/python2.7/dist-packages/PyQt4/Qwt5/pythonrc.py is in python-qwt5-qt4 5.2.1~cvs20091107+dfsg-8.

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
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Set your PYTHONSTARTUP environment variable to $HOME/.pythonrc.py
#
# inspired by:
# http://opag.ca/wiki/OpagCode/OpagSnippets

from __future__ import division

# Import Numpy and SciPy
try:
    import numpy as np
    import scipy as sp
    sp.pkgload(#'cluster',
               'constants',
               'fftpack',
               'integrate',
               'interpolate',
               #'io',
               'linalg',
               'misc',
               'ndimage',
               'odr',
               'optimize',
               #'signal',
               #'sparse',
               #'spatial',
               'special',
               #'stats',
               #'stsci',
               #'weave',
               )
except ImportError:
    pass

# Import PyQt4.Qt and PyQt4.Qwt5; initialize an application.
# Note: hides the builtins hex and oct.
try:
    from PyQt4.Qt import *
    from PyQt4.Qwt5 import *
    from PyQt4.Qwt5.qplt import *
    application = QApplication([])
except ImportError:
    application = None

# Setup readline and history saving
from atexit import register
from os import path
import readline
import rlcompleter

# Set up a tab for completion; use a single space to indent Python code.
readline.parse_and_bind('tab: complete')

history = path.expanduser('~/.python_history')
readline.set_history_length(1000)

# Read the history of the previous session, if it exists.
if path.exists(history):
    readline.read_history_file(history)

# Set up history saving on exit.
def save(history=history, readline=readline, application=application):
    readline.write_history_file(history)

register(save)

# Clean up the global name space; save, history, readline, and application
# will continue to exist, since del decrements the reference count by one.
del register, path, readline, rlcompleter, history, save, application

# Local Variables: ***
# mode: python ***
# End: ***