From 2091a33fb9d2ee5512e253c5eb3f11c31ffc70b2 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 12 Jan 2018 02:23:55 +0200 Subject: [PATCH] Show full version of the current interpreter --- platformio/__init__.py | 2 +- platformio/managers/core.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/platformio/__init__.py b/platformio/__init__.py index 25cc4e8c..e56cfd25 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -36,5 +36,5 @@ if sys.version_info < (2, 7, 0) or sys.version_info >= (3, 0, 0): msg = ("PlatformIO Core v%s does not run under Python version %s.\n" "Minimum supported version is 2.7, please upgrade Python.\n" "Python 3 is not yet supported.\n") - sys.stderr.write(msg % (__version__, sys.version.split()[0])) + sys.stderr.write(msg % (__version__, sys.version)) sys.exit(1) diff --git a/platformio/managers/core.py b/platformio/managers/core.py index 0e872ce7..3d1e8721 100644 --- a/platformio/managers/core.py +++ b/platformio/managers/core.py @@ -101,8 +101,7 @@ def pioplus_call(args, **kwargs): raise exception.PlatformioException( "PlatformIO Core Plus v%s does not run under Python version %s.\n" "Minimum supported version is 2.7.6, please upgrade Python.\n" - "Python 3 is not yet supported.\n" % (__version__, - sys.version.split()[0])) + "Python 3 is not yet supported.\n" % (__version__, sys.version)) pioplus_path = join(get_core_package_dir("tool-pioplus"), "pioplus") pythonexe_path = util.get_pythonexe_path()