Fix import paths
This commit is contained in:
parent
0889b8a7c5
commit
64bdc4c18c
|
@ -21,12 +21,12 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from ifaddr._shared import Adapter, IP
|
from RNS.vendor.ifaddr._shared import Adapter, IP
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
from ifaddr._win32 import get_adapters
|
from RNS.vendor.ifaddr._win32 import get_adapters
|
||||||
elif os.name == "posix":
|
elif os.name == "posix":
|
||||||
from ifaddr._posix import get_adapters
|
from RNS.vendor.ifaddr._posix import get_adapters
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unsupported Operating System: %s" % os.name)
|
raise RuntimeError("Unsupported Operating System: %s" % os.name)
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,7 @@ import socket
|
||||||
|
|
||||||
from typing import Iterable, Optional
|
from typing import Iterable, Optional
|
||||||
|
|
||||||
import ifaddr._shared as shared
|
import RNS.vendor.ifaddr._shared as shared
|
||||||
|
|
||||||
# from ifaddr._shared import sockaddr, Interface, sockaddr_to_ip, ipv6_prefixlength
|
|
||||||
|
|
||||||
|
|
||||||
class ifaddrs(ctypes.Structure):
|
class ifaddrs(ctypes.Structure):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -26,7 +26,6 @@ import platform
|
||||||
|
|
||||||
from typing import List, Optional, Tuple, Union
|
from typing import List, Optional, Tuple, Union
|
||||||
|
|
||||||
|
|
||||||
class Adapter(object):
|
class Adapter(object):
|
||||||
"""
|
"""
|
||||||
Represents a network interface device controller (NIC), such as a
|
Represents a network interface device controller (NIC), such as a
|
||||||
|
|
|
@ -23,7 +23,7 @@ import ctypes
|
||||||
from ctypes import wintypes
|
from ctypes import wintypes
|
||||||
from typing import Iterable, List
|
from typing import Iterable, List
|
||||||
|
|
||||||
import ifaddr._shared as shared
|
import RNS.vendor.ifaddr._shared as shared
|
||||||
|
|
||||||
NO_ERROR = 0
|
NO_ERROR = 0
|
||||||
ERROR_BUFFER_OVERFLOW = 111
|
ERROR_BUFFER_OVERFLOW = 111
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import ifaddr
|
import RNS.vendor.ifaddr
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
Loading…
Reference in New Issue