File: test.py

package info (click to toggle)
serpento 0.4.1-0.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 360 kB
  • ctags: 391
  • sloc: python: 1,762; ansic: 669; perl: 157; sh: 127; makefile: 73
file content (7 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
import struct
positions_fo = open("/var/cache/serpento/positions", "r")
while 1:
    d = positions_fo.read(4)
    c = struct.unpack('i', d)
    print c