def check_build():
 build_dirs = ['build', 'build/doctrees', 'build/html', 'build/latex', 'build/texinfo', '_static', '_templates']
 for d in build_dirs:
  try:
   os.mkdir(d)
  except OSError:
   pass

def check_build ( ) : build_dirs = [ 'build' , 'build/doctrees' , 'build/html' , 'build/latex' , 'build/texinfo' , '_static' , '_templates' ] for d in build_dirs : try : os . mkdir ( d ) except OSError : pass
create target build directories if necessary .