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/serialjava.py b/serial/serialjava.py index 7bd5b3e..9c920c5 100644 --- a/serial/serialjava.py +++ b/serial/serialjava.py
@@ -7,6 +7,8 @@ # # SPDX-License-Identifier: BSD-3-Clause +from __future__ import absolute_import + from serial.serialutil import *