Make var global
This commit is contained in:
parent
ba82ab9d98
commit
3db2138e34
|
@ -145,6 +145,8 @@ ZEROCONF_ACC_NAME = 'Local'
|
||||||
idlequeue = None # type: nbxmpp.idlequeue.IdleQueue
|
idlequeue = None # type: nbxmpp.idlequeue.IdleQueue
|
||||||
socks5queue = None
|
socks5queue = None
|
||||||
|
|
||||||
|
gupnp_igd = None
|
||||||
|
|
||||||
gajim_identity = {'type': 'pc', 'category': 'client', 'name': 'Gajim'}
|
gajim_identity = {'type': 'pc', 'category': 'client', 'name': 'Gajim'}
|
||||||
gajim_common_features = [nbxmpp.NS_BYTESTREAM, nbxmpp.NS_SI, nbxmpp.NS_FILE,
|
gajim_common_features = [nbxmpp.NS_BYTESTREAM, nbxmpp.NS_SI, nbxmpp.NS_FILE,
|
||||||
nbxmpp.NS_MUC, nbxmpp.NS_MUC_USER, nbxmpp.NS_MUC_ADMIN, nbxmpp.NS_MUC_OWNER,
|
nbxmpp.NS_MUC, nbxmpp.NS_MUC_USER, nbxmpp.NS_MUC_ADMIN, nbxmpp.NS_MUC_OWNER,
|
||||||
|
@ -275,6 +277,7 @@ def detect_dependencies():
|
||||||
try:
|
try:
|
||||||
gi.require_version('GUPnPIgd', '1.0')
|
gi.require_version('GUPnPIgd', '1.0')
|
||||||
from gi.repository import GUPnPIgd
|
from gi.repository import GUPnPIgd
|
||||||
|
global gupnp_igd
|
||||||
gupnp_igd = GUPnPIgd.SimpleIgd()
|
gupnp_igd = GUPnPIgd.SimpleIgd()
|
||||||
_dependencies['UPNP'] = True
|
_dependencies['UPNP'] = True
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in New Issue