# HG changeset patch # User Alexandre Fayolle # Date 1275577848 0 # Node ID 755f56f01c9d46ea10ea84499ad1814d37421117 # Parent a07dee2041877050d018b7ed8e2afe31f9ff72b6 [win32] defer import of logilab.common.daemon The module is not importable on windows, and etwist.service carefully avoids importing it (but imports etwist.server). Wait until we are sure not to be on windows to do the import) diff -r a07dee204187 -r 755f56f01c9d etwist/server.py --- a/etwist/server.py Thu Jun 03 09:41:41 2010 +0200 +++ b/etwist/server.py Thu Jun 03 15:10:48 2010 +0000 @@ -41,7 +41,6 @@ from cubicweb.web import dumps from logilab.common.decorators import monkeypatch -from logilab.common.daemon import daemonize from cubicweb import AuthenticationError, ConfigurationError, CW_EVENT_MANAGER from cubicweb.web import Redirect, DirectResponse, StatusResponse, LogOut @@ -394,6 +393,7 @@ if sys.platform == 'win32': raise ConfigurationError("Under windows, you must use the service management " "commands (e.g : 'net start my_instance)'") + from logilab.common.daemon import daemonize print 'instance starting in the background' if daemonize(config['pid-file']): return # child process