JITA: DOVETAIL-449
1. Dovetail cvp.0.1.0 link dovetail/dovetail to
/usr/local/lib/python2.7/dist-packages/dovetail/
2. The directory dovetail/userconfig is lost in this image
3. Move dovetail/userconfig into dovetail/dovetail/userconfig
Change-Id: I9da8389e02d92f35879ff5c6a1db1b7d984dd862
Signed-off-by: xudan <xudan16@huawei.com>
hosts_config = ""
hosts_config_path = os.path.abspath(
- os.path.join(os.path.dirname(__file__), os.pardir, 'userconfig'))
+ os.path.join(os.path.dirname(__file__), 'userconfig'))
try:
with open(os.path.join(hosts_config_path, 'hosts.yaml')) as f:
hosts_info = yaml.safe_load(f)
def copy_userconfig_files(logger):
- dovetail_home = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ dovetail_home = os.path.dirname(os.path.abspath(__file__))
userconfig_path = os.path.join(dovetail_home, 'userconfig')
pre_config_path = dt_cfg.dovetail_config['config_dir']
if not os.path.isdir(pre_config_path):