/usr/share/doc/python-circuits-doc/examples/hello.py is in python-circuits-doc 2.1.0-2.
This file is owned by root:root, with mode 0o755.
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 | #!/usr/bin/env python
from circuits import Component, Event
class Hello(Event):
"""Hello Event"""
class App(Component):
def hello(self):
print("Hello World!")
def started(self, component):
self.fire(Hello())
raise SystemExit(0)
App().run()
|