| Index: build/android/pylib/cmd_helper.py
|
| diff --git a/build/android/pylib/cmd_helper.py b/build/android/pylib/cmd_helper.py
|
| index 46b6981195ebcecf9b2ed43c1d13eace39d4b00a..0058782a3e6bb5fb61ae3554f1b255945f291f71 100644
|
| --- a/build/android/pylib/cmd_helper.py
|
| +++ b/build/android/pylib/cmd_helper.py
|
| @@ -4,10 +4,11 @@
|
|
|
| """A wrapper for subprocess to make calling shell commands easier."""
|
|
|
| -
|
| +import os
|
| import logging
|
| import subprocess
|
|
|
| +import constants
|
|
|
| def RunCmd(args, cwd=None):
|
| """Opens a subprocess to execute a program and returns its return value.
|
| @@ -65,3 +66,12 @@ def GetCmdStatusAndOutput(args, cwd=None, shell=False):
|
| logging.critical(stderr)
|
| logging.info(stdout[:4096]) # Truncate output longer than 4k.
|
| return (exit_code, stdout)
|
| +
|
| +class OutDirectory(object):
|
| + _out_directory = constants.CHROME_DIR
|
| + @staticmethod
|
| + def set(out_directory):
|
| + OutDirectory._out_directory = out_directory
|
| + @staticmethod
|
| + def get():
|
| + return OutDirectory._out_directory
|
|
|