From 6f4a5656e8a708cf73aa0f73a12076ebeb8a1877 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 27 Dec 2018 14:29:09 -0600 Subject: [PATCH] fixing python3 imports... maybe --- .gitignore | 91 ++++++++++++++++++++++++++++++++++++++++++++ dmr_utils3/bptc.py | 2 +- dmr_utils3/decode.py | 2 +- dmr_utils3/encode.py | 2 +- dmr_utils3/golay.py | 2 +- 5 files changed, 95 insertions(+), 4 deletions(-) create mode 100755 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..95ea3fd --- /dev/null +++ b/.gitignore @@ -0,0 +1,91 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# IPython Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# dotenv +.env + +# virtualenv +venv/ +ENV/ + +# Spyder project settings +.spyderproject + +# Rope project settings +.ropeproject + +.DS_Store \ No newline at end of file diff --git a/dmr_utils3/bptc.py b/dmr_utils3/bptc.py index a210f04..e4f4893 100755 --- a/dmr_utils3/bptc.py +++ b/dmr_utils3/bptc.py @@ -21,7 +21,7 @@ from bitarray import bitarray -import hamming, crc, rs129 +from dmr_utils3 import hamming, crc, rs129 # Does anybody read this stuff? There's a PEP somewhere that says I should do this. __author__ = 'Cortney T. Buffington, N0MJS' diff --git a/dmr_utils3/decode.py b/dmr_utils3/decode.py index 324db7e..e838f84 100755 --- a/dmr_utils3/decode.py +++ b/dmr_utils3/decode.py @@ -21,7 +21,7 @@ from bitarray import bitarray -import bptc +from dmr_utils3 import bptc # Does anybody read this stuff? There's a PEP somewhere that says I should do this. __author__ = 'Cortney T. Buffington, N0MJS' diff --git a/dmr_utils3/encode.py b/dmr_utils3/encode.py index e9e5de6..49e0790 100755 --- a/dmr_utils3/encode.py +++ b/dmr_utils3/encode.py @@ -20,7 +20,7 @@ from bitarray import bitarray -import const +from dmr_utils3 import const # Does anybody read this stuff? There's a PEP somewhere that says I should do this. __author__ = 'Cortney T. Buffington, N0MJS' diff --git a/dmr_utils3/golay.py b/dmr_utils3/golay.py index 7ca81d5..010c1fc 100755 --- a/dmr_utils3/golay.py +++ b/dmr_utils3/golay.py @@ -22,7 +22,7 @@ from bitarray import bitarray from binascii import b2a_hex as ahex -from golay_tables import * +from dmr_utils3.golay_tables import * # Does anybody read this stuff? There's a PEP somewhere that says I should do this. __author__ = 'Cortney T. Buffington, N0MJS'