Added gevent magic.

This commit is contained in:
Rudi Grinberg 2012-10-22 12:14:36 -04:00
parent 2527fa2e1a
commit 75ba2d8e90
4 changed files with 8 additions and 0 deletions

View File

@ -250,3 +250,6 @@ class Manager(Loggable):
notifier = pyinotify.Notifier(self.wm)
notifier.coalesce_events()
notifier.loop()
#import asyncore
#notifier = pyinotify.AsyncNotifier(self.wm)
#asyncore.loop()

View File

@ -23,6 +23,10 @@ from std_err_override import LogWriter
import media.monitor.pure as mmp
from api_clients import api_client as apc
import gevent.monkey
gevent.monkey.patch_all(select=False)
def main(global_config, api_client_config, log_config,
index_create_attempt=False):

View File

@ -10,3 +10,4 @@ wsgiref==0.1.2
configobj==4.7.2
mutagen==1.20
docopt==0.4.2
gevent==0.13.7