[dkirov] When .so modules are loaded from module path there is no need to do extra checks.

This commit is contained in:
Yann Leboulanger 2006-11-08 13:23:38 +00:00
parent b288264135
commit c897263ed0
3 changed files with 9 additions and 18 deletions

View File

@ -44,10 +44,7 @@ METACONTACTS_ARRIVED = 'metacontacts_arrived'
PRIVACY_ARRIVED = 'privacy_arrived'
HAS_IDLE = True
try:
import common.idle as idle # when we launch gajim from sources
except:
try:
import idle # when Gajim is installed
import idle
except:
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False

View File

@ -33,10 +33,7 @@ STATE_AWAKE = 'awake'
SUPPORTED = True
try:
import common.idle as idle # when we launch gajim from sources
except:
try:
import idle # when Gajim is installed
import idle
except:
gajim.log.debug('Unable to load idle module')
SUPPORTED = False

View File

@ -42,10 +42,7 @@ VCARD_ARRIVED = 'vcard_arrived'
AGENT_REMOVED = 'agent_removed'
HAS_IDLE = True
try:
import common.idle as idle # when we launch gajim from sources
except:
try:
import idle # when Gajim is installed
import idle
except:
gajim.log.debug(_('Unable to load idle module'))
HAS_IDLE = False