1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

update pipe_exists function

This commit is contained in:
Pavol Rusnak 2017-04-25 16:47:30 +02:00
parent 4999056678
commit 0840117033
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -42,13 +42,13 @@ except:
def pipe_exists(path):
import os
import os, stat
try:
os.stat(path)
return True
return stat.S_ISFIFO(os.stat(path).st_mode)
except:
return False
if HID_ENABLED:
devices = HidTransport.enumerate()