summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/config.py b/config.py
index e793cfa7..00160a85 100644
--- a/config.py
+++ b/config.py
@@ -29,13 +29,13 @@ env_config = ConfigParser.ConfigParser(allow_no_value=True)
env_config.read('env_setting')
def get_suite_env(name, path=False):
- variable = env_config.get('Suite_Environment', name)
- if variable:
- if path and not os.path.isdir(variable):
- raise ValueError('The path of %s does not exist.' % name)
- return variable
- else:
- raise ValueError('Please specify %s in env_setting' % name)
+ variable = env_config.get('Suite_Environment', name)
+ if variable:
+ if path and not os.path.isdir(variable):
+ raise ValueError('The path of %s does not exist.' % name)
+ return variable
+ else:
+ raise ValueError('Please specify %s in env_setting' % name)
# Android source code type: internal or aosp
android_type = get_suite_env('android_type')