Newer
Older
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
import threading
import socket
import time

Yann Leboulanger
committed
import sys
from common import i18n
_ = i18n._
class GajimThread(threading.Thread):
def __init__(self, name = None, queueIn = None, queueOut = None):
self.queueIn = queueIn
self.queueOut = queueOut
mod = compile('import plugins.%s' % self.getName(), self.getName(), 'exec')
mod = compile('plugins.%s.%s.plugin(self.queueIn, self.queueOut)'
% (self.getName(), self.getName()), self.getName(), 'exec')