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:
parent
4999056678
commit
0840117033
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user