parameters: (log = EmptyLogger())
return_statement: return path[0]
docstring: Attempts to find 7zip for unpacking the mingw-build archives
docstring_summary: Attempts to find 7zip for unpacking the mingw-build archives
docstring_tokens: Attempts to find 7zip for unpacking the mingw - build archives
function: def find_7zip(log = EmptyLogger()):
      '''
      Attempts to find 7zip for unpacking the mingw-build archives
      '''
      log.info('finding 7zip')
      path = find_in_path('7z')
      if not path:
          key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\7-Zip')
          path, _ = winreg.QueryValueEx(key, 'Path')
          path = [os.path.join(path, '7z.exe')]
      log.debug('found \'%s\'', path[0])
      return path[0]
function_tokens: def find_7zip ( log = EmptyLogger ( ) ) : log . info ( 'finding 7zip' ) path = find_in_path ( '7z' ) if not path : key = winreg . OpenKey ( winreg . HKEY_LOCAL_MACHINE , r'SOFTWARE\7-Zip' ) path , _ = winreg . QueryValueEx ( key , 'Path' ) path = [ os . path . join ( path , '7z.exe' ) ] log . debug ( 'found \'%s\'' , path [ 0 ] ) return path [ 0 ]