commit | 057387c3df39c595a37c9721ea7a77d0a2daefb1 | [log] [tgz] |
---|---|---|
author | Kurt McKee <contactme@kurtmckee.org> | Wed Feb 07 22:10:38 2018 -0600 |
committer | Kurt McKee <contactme@kurtmckee.org> | Wed Feb 07 22:10:38 2018 -0600 |
tree | bc24f6a192cb4b8bc73628b2d1662208cb4368d9 | |
parent | 92d101613be41ecb2f2054c3f43a006fbe6f9966 [diff] [blame] |
Use absolute import everywhere This prevents Python 2.7 from attempting to import system modules like sys and ctypes from the 'serial' directory.
diff --git a/serial/tools/miniterm.py b/serial/tools/miniterm.py index 812f146..b0804ba 100644 --- a/serial/tools/miniterm.py +++ b/serial/tools/miniterm.py
@@ -7,6 +7,8 @@ # # SPDX-License-Identifier: BSD-3-Clause +from __future__ import absolute_import + import codecs import os import sys