home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / buildutil / signing.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  786 b   |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from buildutil.buildfileutils import run
  5. from buildutil.promptlib import prompt
  6.  
  7. def Authenticode(exe):
  8.     print '*** signing executable %r ***' % exe
  9.     
  10.     try:
  11.         run([
  12.             'signtool',
  13.             'sign',
  14.             '/a',
  15.             '/t',
  16.             'http://timestamp.verisign.com/scripts/timstamp.dll',
  17.             str(exe)])
  18.     except Exception:
  19.         e = None
  20.         print '\t\tError signing executable %r: %r' % (exe, e)
  21.         keep_going = prompt('Continue?', bool, False)
  22.         if not keep_going:
  23.             raise e
  24.         keep_going
  25.  
  26.     print '*** signed %r ***' % exe
  27.  
  28.