7 from sparrow
import FRAME_STRUCTURE
, INDEX_FILE
, TEXT_INDEX_FILE
8 from sparrow
import save_frames
, save_frames_text
, Frame
, link_frames
10 # f.write(struct.pack('II48s8I',
18 def load_frames(filename
):
20 structlen
= struct
.calcsize(FRAME_STRUCTURE
)
34 frames
= link_frames(load_frames(INDEX_FILE
))
36 save_frames(frames
, INDEX_FILE
+ '-new')
37 save_frames_text(frames
, TEXT_INDEX_FILE
+ '-new')