From 332874cd4b392e718590255fc5cc72fac5ae4e85 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 14 Aug 2020 16:48:12 +0300 Subject: [PATCH] Fix relative import of platform module on Py27 --- platformio/app.py | 2 ++ platformio/util.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platformio/app.py b/platformio/app.py index a1a4ee73..00a8e89f 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import absolute_import + import codecs import getpass import hashlib diff --git a/platformio/util.py b/platformio/util.py index 5b38909d..a1974f17 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import absolute_import + import json import math import os