/usr/share/pyshared/ase/gui/debug.py is in python-ase 3.6.0.2515-1.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 | import sys
import gtk
from gettext import gettext as _
import numpy as np
class Debug(gtk.Window):
def __init__(self, gui):
self.gui = gui
gtk.Window.__init__(self)
self.set_title(_('Debug'))
entry = gtk.Entry(200)
self.add(entry)
entry.connect('activate', self.enter, entry)
entry.show()
self.show()
def enter(self, widget, entry):
g = self.gui
print >> sys.stderr, eval(entry.get_text())
|