This file is indexed.

/usr/share/pyshared/cviewer/run.py is in connectomeviewer 2.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
 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
""" Startup script for the Connectome Viewer application

"""
# Copyright (C) 2009-2010, Ecole Polytechnique Federale de Lausanne (EPFL) and
# University Hospital Center and University of Lausanne (UNIL-CHUV)
#
# Modified BSD License

# Standard library imports
import sys
import logging
from __version__ import __version__

# First, and before importing any Enthought packages, set the ETS_TOOLKIT
# environment variable to qt4, to tell Traits that we will use Qt.
#import os
#os.environ['ETS_TOOLKIT'] = 'qt4'

# ConnectomeViewer imports
from cviewer.app import CViewer

# Testing for corrext wxversion
# Try forcing the use of wx 2.8 before any other import.
import sys
if not 'wx' in sys.modules:
    try:
        from traits.etsconfig.api import ETSConfig
        if ETSConfig.toolkit in ('wx', ''):
            import wxversion
            wxversion.ensureMinimal('2.8')
    except ImportError:
        """ wxversion not installed or not 2.8 or higher"""

##########################################################################
# `CViewerApp` class
##########################################################################

class CViewerApp(CViewer):
    
    def parse_command_line(self, argv):
        """Parse command line options. """

        # This is a overwritten method
        # Parse and store command line options to process
        # once app has started in `run`.
        
        from optparse import OptionParser
        usage = "usage: %prog [options]"
        parser = OptionParser(usage, version="%prog " + __version__ )
        #parser.add_option("--load-cff", 
        #              type="string", dest="cfile", default='',
        #              help="Open the given .cff file directly.")
        parser.add_option("-v", "--verbose",
                      dest="verbose", default=False,
                      action="store_true", 
                      help="Print out debug information.")
    
        (options, args) = parser.parse_args(argv)
        
        self.cmd_line_opts = (options, args)
        
        if options.verbose:
            self.log_mode = logging.DEBUG
        else:
            self.log_mode = logging.ERROR


    def run(self):
        """Process the command line options and setup cviewer as per
        the users needs.
        """
        
        options, args = self.cmd_line_opts
        # Process the options.
        

def main():
    """ Startup of the Connectome Viewer """
    global cviewer
    
    # allowing imports like cviewer.plugins.
    if '' not in sys.path:
        sys.path.insert(0, '')
    # to prevent a bug (?) on 64 bit machines
    # we need to import the gifti libraries before the main loop
    #import cviewer.io.gifti.gifti as gifti
    
    cviewer = CViewerApp()
    cviewer.main(sys.argv[1:])