parameters: (path)
docstring: Create a directory if it doesn't exit.
docstring_summary: Create a directory if it doesn't exit.
docstring_tokens: Create a directory if it doesn t exit .
function: def mkdir_p(path):
      """Create a directory if it doesn't exit."""
      try:
          os.makedirs(path)
      except OSError as exc:
          if exc.errno == errno.EEXIST and os.path.isdir(path):
              pass
          else:
              raise
function_tokens: def mkdir_p ( path ) : try : os . makedirs ( path ) except OSError as exc : if exc . errno == errno . EEXIST and os . path . isdir ( path ) : pass else : raise