From 54a2e4f5ae012a892c3eb73ada2a292c3aa91db7 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sat, 18 Dec 2010 12:42:15 +0300 Subject: [PATCH] fix for demandimport --- src/common/sleepy.py | 1 + src/gajim.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/sleepy.py b/src/common/sleepy.py index f32ebf807..6fadd9dbd 100644 --- a/src/common/sleepy.py +++ b/src/common/sleepy.py @@ -50,6 +50,7 @@ try: SystemParametersInfo = ctypes.windll.user32.SystemParametersInfoW else: # unix from common import idle + idle.xss_available except Exception: gajim.log.debug('Unable to load idle module') SUPPORTED = False diff --git a/src/gajim.py b/src/gajim.py index b70da8bf9..796ccdbf2 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -39,7 +39,8 @@ from common import demandimport demandimport.enable() demandimport.ignore += ['gobject._gobject', 'libasyncns', 'i18n', 'logging.NullHandler', 'dbus.glib', 'dbus.service', - 'command_system.implementation.standard', 'OpenSSL.SSL', 'OpenSSL.crypto'] + 'command_system.implementation.standard', 'OpenSSL.SSL', 'OpenSSL.crypto', + 'common.sleepy'] import os import sys