use gobject introspection to access gupnp-igd
This commit is contained in:
parent
b81863527f
commit
7ebde173bc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue