From 274b04c08f2a5bf9fdf418d299c8240e2a4b0b3a Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 22 May 2015 16:44:53 +0300 Subject: [PATCH] Fix system type when machine data is not available --- platformio/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/util.py b/platformio/util.py index 806225fc..6dbad199 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -90,7 +90,10 @@ class memoized(object): def get_systype(): data = uname() - return ("%s_%s" % (data[0], data[4])).lower() + systype = data[0] + if data[4]: + systype += "_" + data[4] + return systype.lower() def pioversion_to_intstr():