mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
22 lines
463 B
Python
22 lines
463 B
Python
# coding: utf-8
|
|
from __future__ import print_function, unicode_literals
|
|
|
|
"""
|
|
L: BSD-2-Clause
|
|
Copyright (c) 2014 Stefan C. Mueller
|
|
https://github.com/pydron/ifaddr/tree/0.2.0
|
|
"""
|
|
|
|
import os
|
|
|
|
from ._shared import IP, Adapter
|
|
|
|
if os.name == "nt":
|
|
from ._win32 import get_adapters
|
|
elif os.name == "posix":
|
|
from ._posix import get_adapters
|
|
else:
|
|
raise RuntimeError("Unsupported Operating System: %s" % os.name)
|
|
|
|
__all__ = ["Adapter", "IP", "get_adapters"]
|