tools/android/appstats.py
def ValidatePath(path):
    """An argparse validation method to make sure a file path is writable."""
    if os.path.exists(path):
      return path
    elif os.access(os.path.dirname(path), os.W_OK):
      return path
    raise argparse.ArgumentTypeError("%s is an invalid file path" % path)
An argparse validation method to make sure a file path is writable.
An argparse validation method to make sure a file path is writable.
An argparse validation method to make sure a file path is writable .
def ValidatePath(path):
    if os.path.exists(path):
      return path
    elif os.access(os.path.dirname(path), os.W_OK):
      return path
    raise argparse.ArgumentTypeError("%s is an invalid file path" % path)
def ValidatePath ( path ) : if os . path . exists ( path ) : return path elif os . access ( os . path . dirname ( path ) , os . W_OK ) : return path raise argparse . ArgumentTypeError ( "%s is an invalid file path" % path )
An argparse validation method to make sure a file path is writable.
An argparse validation method to make sure a file path is writable .
"""An argparse validation method to make sure a file path is writable."""
path