Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit b0369d7

Browse files
committed
Fix issue #27
os.uname() is not available on all platforms, particularily Windows. sys.platform contains almost the same information and is available on all platforms where I was able to test: - linux x86 - linux ppc64le - AIX - Windows x86 - ESP8266
1 parent 143f446 commit b0369d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BlynkLib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import struct
66
import time
7+
import sys
78
import os
89

910
try:
@@ -46,7 +47,7 @@ def dummy(*args):
4647
/ _ )/ /_ _____ / /__
4748
/ _ / / // / _ \\/ '_/
4849
/____/_/\\_, /_//_/_/\\_\\
49-
/___/ for Python v""" + _VERSION + " (" + os.uname()[0] + ")\n")
50+
/___/ for Python v""" + _VERSION + " (" + sys.platform + ")\n")
5051

5152
class BlynkProtocol:
5253
def __init__(self, auth, heartbeat=10, buffin=1024, log=None):

0 commit comments

Comments
 (0)