Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 1 | From afb778669efbc658a29e6bdb1c4834fee42931aa Mon Sep 17 00:00:00 2001 |
| 2 | From: Robert Grant <rgrant@mdi.us.com> |
| 3 | Date: Wed, 10 Sep 2014 14:56:33 -0400 |
| 4 | Subject: [PATCH] Fixed relative imports |
| 5 | |
| 6 | Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> |
| 7 | |
| 8 | --- |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 9 | Upstream-Status: Backport [https://github.com/rlisagor/pynetlinux/commit/afb778669efbc658a29e6bdb1c4834fee42931aa] |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 10 | |
| 11 | pynetlinux/__init__.py | 8 ++++---- |
| 12 | pynetlinux/brctl.py | 2 +- |
| 13 | pynetlinux/tap.py | 2 +- |
| 14 | 3 files changed, 6 insertions(+), 6 deletions(-) |
| 15 | |
| 16 | diff --git a/pynetlinux/__init__.py b/pynetlinux/__init__.py |
| 17 | index dbbf392..b6e1b8e 100644 |
| 18 | --- a/pynetlinux/__init__.py |
| 19 | +++ b/pynetlinux/__init__.py |
| 20 | @@ -2,7 +2,7 @@ |
| 21 | # import pylinux |
| 22 | # does a reasonable thing. |
| 23 | |
| 24 | -import brctl |
| 25 | -import ifconfig |
| 26 | -import tap |
| 27 | -import route |
| 28 | +from . import brctl |
| 29 | +from . import ifconfig |
| 30 | +from . import tap |
| 31 | +from . import route |
| 32 | diff --git a/pynetlinux/brctl.py b/pynetlinux/brctl.py |
| 33 | index f54d176..a8b926e 100644 |
| 34 | --- a/pynetlinux/brctl.py |
| 35 | +++ b/pynetlinux/brctl.py |
| 36 | @@ -3,7 +3,7 @@ import fcntl |
| 37 | import os |
| 38 | import struct |
| 39 | |
| 40 | -import ifconfig |
| 41 | +from . import ifconfig |
| 42 | |
| 43 | SYSFS_NET_PATH = "/sys/class/net" |
| 44 | |
| 45 | diff --git a/pynetlinux/tap.py b/pynetlinux/tap.py |
| 46 | index 0a0d59c..3f8ad3a 100644 |
| 47 | --- a/pynetlinux/tap.py |
| 48 | +++ b/pynetlinux/tap.py |
| 49 | @@ -2,7 +2,7 @@ import fcntl |
| 50 | import os |
| 51 | import struct |
| 52 | |
| 53 | -import ifconfig |
| 54 | +from . import ifconfig |
| 55 | |
| 56 | # From linux/if_tun.h |
| 57 | |
| 58 | -- |
| 59 | 2.39.2 |
| 60 | |