home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / serpentine / export.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  656 b   |  20 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4.  
  5. def to_cue(music_list, output):
  6.     track = 1
  7.     for music in music_list:
  8.         output.write('FILE "%s" WAVE\r\n' % music['filename'])
  9.         output.write('\tTRACK %2d AUDIO\r\n' % track)
  10.         if music.has_key('title'):
  11.             output.write('\t\tTITLE "%s"\r\n' % music['title'])
  12.         
  13.         if music.has_key('artist'):
  14.             output.write('\t\tPERFORMER "%s"\r\n' % music['artist'])
  15.         
  16.         output.write('\t\tINDEX 01 00:00:00\r\n')
  17.         track += 1
  18.     
  19.  
  20.