compile with swig files if available

This commit is contained in:
Philippe Teuwen 2020-11-11 00:03:58 +01:00
commit f37088095b
17 changed files with 198 additions and 593 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env python3
import pm3
from output_grabber import OutputGrabber
out = OutputGrabber()
p=pm3.pm3()
print("Device:", p.name)
with out:
p.console("hw status")
for line in out.capturedtext.split('\n'):
if "Unique ID" in line:
print(line)