Add examples to fetch prefs from Lua & Python scripts
This commit is contained in:
1 parent
57d3de2af6
commit
7fa1a204f4
4 files changed
+40
No files matched your search
@@ -12,3 +12,11 @@ for line in p.grabbed_output.split('\n'):
|
||||
print(line)
|
||||
print("Device:", p.name)
|
||||
p.console("Rem passthru remark! :coffee:", True)
|
||||
|
||||
import json
|
||||
print("Fetching prefs:")
|
||||
p.console("prefs show --json")
|
||||
prefs = json.loads(p.grabbed_output)
|
||||
print("Save path: ", prefs['file.default.savepath'])
|
||||
print("Dump path: ", prefs['file.default.dumppath'])
|
||||
print("Trace path:", prefs['file.default.tracepath'])
|
||||
Reference in new issue
Block a user