~jderose/+junk/dc2

« back to all changes in this revision

Viewing changes to dc2.py

  • Committer: Jason Gerard DeRose
  • Date: 2011-08-28 10:29:35 UTC
  • Revision ID: jderose@novacut.com-20110828102935-vedj0ezo61lp8o9n
Added a GObject timout based monitor loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from xdg import BaseDirectory
13
13
import microfiber
14
14
 
15
 
 
 
15
__version__ = '0.0.1'
 
16
NAME = 'dc2'
16
17
log = logging.getLogger()
17
 
NAME = 'dc2'
18
18
 
19
19
 
20
20
template = """
92
92
        level=logging.DEBUG,
93
93
        format='\t'.join(format),
94
94
    )
 
95
    log.info('dc2.__version__: %r', __version__)
 
96
    log.info('dc2.__file__: %r', __file__)
95
97
    
96
98
    ini = path.join(config, 'session.ini')
97
99
    d = {
206
208
            self.kill()
207
209
            self.start()
208
210
            
209
 
    def _terminate(self):
 
211
    def crash(self):
210
212
        """
211
213
        Do a soft kill for testing purposes to see if it is re-spawned.
212
214
        """