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

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import os
  5. import os.path as os
  6. import buildutil
  7. GIT_BIN = [
  8.     'git']
  9. if os.name == 'nt':
  10.     progfiles = os.environ.get('ProgramFiles(x86)', os.environ.get('ProgramFiles', None))
  11.     if progfiles is not None:
  12.         git_bin = buildutil.which('git', os.path.join(progfiles, 'Git', 'cmd', 'git.cmd'))
  13.         GIT_BIN = [
  14.             git_bin]
  15.         if git_bin.lower().endswith('.cmd'):
  16.             cmd = buildutil.which('cmd', buildutil.which('command'))
  17.             if cmd is not None:
  18.                 GIT_BIN[:0] = [
  19.                     cmd,
  20.                     '/c']
  21.             
  22.         
  23.     
  24.  
  25.  
  26. def run(cmd):
  27.     buildutil.run(GIT_BIN + cmd)
  28.  
  29.