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 / AppInstall / create_cache.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  735 b   |  17 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. from Menu import *
  5. import sys
  6. if __name__ == '__main__':
  7.     print 'Creating desktop files cache'
  8.     print 'Example: create_cache $desktopfilesdir $targetdir'
  9.     datadir = sys.argv[1]
  10.     targetdir = sys.argv[2]
  11.     from Util import MyCache
  12.     cache = MyCache()
  13.     treeview = gtk.TreeView()
  14.     menu = ApplicationMenu(datadir, targetdir, cache, treeview, treeview, apt.progress.OpProgress(), dontPopulate = True)
  15.     menu.createMenuCache(targetdir)
  16.  
  17.