mirror of
https://github.com/platformio/platformio-core.git
synced 2026-05-05 04:14:16 +02:00
Fix system type when machine data is not available
This commit is contained in:
+4
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user