From 56dbb618c60631deadb010c77a39bd31499ed306 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Mon, 3 Oct 2016 21:31:22 +0200 Subject: [PATCH] use relative imports within pyModeS package --- pyModeS/__init__.py | 3 +++ pyModeS/adsb.py | 2 +- pyModeS/ehs.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyModeS/__init__.py b/pyModeS/__init__.py index e69de29..6dd5946 100644 --- a/pyModeS/__init__.py +++ b/pyModeS/__init__.py @@ -0,0 +1,3 @@ +from __future__ import absolute_import, print_function, division + +from .util import * \ No newline at end of file diff --git a/pyModeS/adsb.py b/pyModeS/adsb.py index 85cfa89..a7e9d63 100644 --- a/pyModeS/adsb.py +++ b/pyModeS/adsb.py @@ -18,7 +18,7 @@ A python package for decoding ABS-D messages. """ import math -from pyModeS import util +from . import util def df(msg): diff --git a/pyModeS/ehs.py b/pyModeS/ehs.py index d6c1368..f1d3229 100644 --- a/pyModeS/ehs.py +++ b/pyModeS/ehs.py @@ -17,8 +17,8 @@ A python package for decoding ModeS (DF20, DF21) messages. """ -from pyModeS import util -from pyModeS.util import crc +from . import util +from .util import crc def df(msg):