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