From b25c1371f82911ea26b8c893b6612bb5ae0c8c19 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Thu, 1 Mar 2018 20:03:59 +0800 Subject: leverage data_files to eliminate so many hardcoded abs_path_seekings 1. mv conf/ userconfig/ compliance/ patch to etc/ 2. after installation etc/ will be put under /etc/dovetail 3. leveraging /etc/dovetail in coding Change-Id: Icf9cb00ff7fc7cf35755f60d3e258b23e2c70839 Signed-off-by: SerenaFeng --- dovetail/constants.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dovetail/constants.py (limited to 'dovetail/constants.py') diff --git a/dovetail/constants.py b/dovetail/constants.py new file mode 100644 index 00000000..c3ce615e --- /dev/null +++ b/dovetail/constants.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# +# feng.xiaowei@zte.com.cn +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +import os.path + + +DOVETAIL_CONF_PATH = '/etc/dovetail' +USERCONF_PATH = os.path.join(DOVETAIL_CONF_PATH, 'userconfig') +PATCH_PATH = os.path.join(DOVETAIL_CONF_PATH, 'patch') +CONF_PATH = os.path.join(DOVETAIL_CONF_PATH, 'conf') +TESTCASE_PATH = os.path.join(DOVETAIL_CONF_PATH, 'testcase') +COMPLIANCE_PATH = os.path.join(DOVETAIL_CONF_PATH, 'compliance') -- cgit 1.2.3-korg