This file is indexed.

/usr/lib/python2.7/dist-packages/pmg_tk/startup/__init__.py is in pymol 1.8.4.0+dfsg-1build1.

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
# Add your pmg_tk startup scripts to this directory...

# here are two examples: (copy to new ".py" files and remove comment marks)

# === BEGIN EXAMPLE: myplugin.py ===
#
#from Tkinter import *
#from pymol import cmd
#
#def __init__(self):
#   self.menuBar.addcascademenu('Plugin', 'MyPlugin', 'Sample Plugin',
#                               label='Sample Plugin')
#   
#   self.menuBar.addmenuitem('MyPlugin', 'command',
#                      'Set White Background',
#                      label='Set White Background',
#                      command = lambda : cmd.set("bg_rgb","[1,1,1]"))
#
#   self.menuBar.addmenuitem('MyPlugin', 'command',
#                      'Set Black Background',
#                      label='Set Black Background',
#                      command = lambda : cmd.set("bg_rgb","[0,0,0]"))
# === END EXAMPLE




# === BEGIN EXAMPLE: newmenu.py ===
#
#from Tkinter import *
#from pymol import cmd
#
#def __init__(self):
#   self.menuBar.addmenu('NewMenu', 'Sample Menu')
#
#   self.menuBar.addmenuitem('NewMenu', 'command',
#                      'White background',
#                      label='White Background',
#                     command = lambda : cmd.set("bg_rgb","[1,1,1]"))
#
#   self.menuBar.addmenuitem('NewMenu', 'command',
#                      'Black background',
#                      label='Black Background',
#                     command = lambda : cmd.set("bg_rgb","[0,0,0]"))
#
# === END EXAMPLE ===