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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue