def GetGeneratePath():
 assert (not is_readonly), 'Why do you want the genpath for a readonly store?'
 try:
  os.makedirs(win32com.__gen_path__)
 except os.error:
  pass
 try:
  fname = os.path.join(win32com.__gen_path__, '__init__.py')
  os.stat(fname)
 except os.error:
  f = open(fname, 'w')
  f.write('# Generated file - this directory may be deleted to reset the COM cache...\n')
  f.write('import win32com\n')
  f.write('if __path__[:-1] != win32com.__gen_path__: __path__.append(win32com.__gen_path__)\n')
  f.close()
 return win32com.__gen_path__

def GetGeneratePath ( ) : assert ( not is_readonly ) , 'Why do you want the genpath for a readonly store?' try : os . makedirs ( win32com . __gen_path__ ) except os . error : pass try : fname = os . path . join ( win32com . __gen_path__ , '__init__.py' ) os . stat ( fname ) except os . error : f = open ( fname , 'w' ) f . write ( '# Generated file - this directory may be deleted to reset the COM cache...\n' ) f . write ( 'import win32com\n' ) f . write ( 'if __path__[:-1] != win32com.__gen_path__: __path__.append(win32com.__gen_path__)\n' ) f . close ( ) return win32com . __gen_path__
returns the name of the path to generate to .