From 773abe961b1f4e5a8eb76058f90c628b66b1ad4b Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Tue, 8 Nov 2016 14:32:59 +0800 Subject: Move a process file ips.log to /home/opnfv/qtip/ It is better to put process files to /home/opnfv/qtip/. Change-Id: I3ed5d13fdf1ce65303f1005ed2284c9ba2271207 Signed-off-by: wu.zhihui --- func/env_setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'func') diff --git a/func/env_setup.py b/func/env_setup.py index 6027f904..e9f9cd2a 100644 --- a/func/env_setup.py +++ b/func/env_setup.py @@ -113,8 +113,7 @@ class Env_setup: (installer_type, installer_ip) logger.info(cmd) os.system(cmd) - home = expanduser("~") - with open(home + "/ips.log", "r") as file: + with open(expanduser('~') + "/qtip/ips.log", "r") as file: data = file.read() if data: ips.extend(data.rstrip('\n').split('\n')) -- cgit 1.2.3-korg