summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripts/py.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/scripts/py.py b/src/scripts/py.py
new file mode 100644
index 0000000..106c465
--- /dev/null
+++ b/src/scripts/py.py
@@ -0,0 +1,13 @@
+import time
+import screen
+
+f = open("/tmp/debug/py", "ab")
+f.write("Called at %s \n" % (time.asctime(time.localtime())))
+f.close()
+
+
+f = open("/tmp/debug/py", "ab")
+windows = screen.windows()
+for win in windows:
+ f.write("Window: %s (%d) %s %s %d\n" % (win.title, win.number, win.dir, win.tty, win.pid))
+f.close()