use gobject introspection to access gupnp-igd

This commit is contained in:
Yann Leboulanger 2012-12-26 23:39:22 +01:00
parent b81863527f
commit 7ebde173bc
1 changed files with 2 additions and 3 deletions

View File

@ -191,9 +191,8 @@ except ImportError:
HAVE_UPNP_IGD = True HAVE_UPNP_IGD = True
try: try:
raise ImportError from gi.repository import GUPnPIgd
import gupnp.igd gupnp_igd = GUPnPIgd.SimpleIgd()
gupnp_igd = gupnp.igd.Simple()
except ImportError: except ImportError:
HAVE_UPNP_IGD = False HAVE_UPNP_IGD = False