Archived
debug
This commit is contained in:
@@ -20,7 +20,7 @@ import sys
|
||||
|
||||
# load randommodules
|
||||
#from random import randint, gauss
|
||||
#from pathlib import Path
|
||||
from pathlib import Path
|
||||
import pyudev
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ context = pyudev.Context()
|
||||
|
||||
def main():
|
||||
while True:
|
||||
font = make_font(None, None)
|
||||
term = terminal(device_used, font)
|
||||
|
||||
term = terminal(device_used, ImageFont.truetype(None, None))
|
||||
monitor = pyudev.Monitor.from_netlink(context)
|
||||
monitor.filter_by('block')
|
||||
for device in iter(monitor.poll, None):
|
||||
|
||||
Reference in New Issue
Block a user