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
try:
raise ImportError
import gupnp.igd
gupnp_igd = gupnp.igd.Simple()
from gi.repository import GUPnPIgd
gupnp_igd = GUPnPIgd.SimpleIgd()
except ImportError:
HAVE_UPNP_IGD = False