From 27c3f6ff48e91b47052959dcffde66cfb66c5571 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 6 Nov 2015 13:51:08 +0800 Subject: [PATCH] Use the absoluate path Use the absoluate path rather than that with `..`. This will be helpfull for end-user to see where is the folder/file. Closes-Bug: #1513726 Change-Id: I7169952d874ddf14469605444044de0163b033d3 --- kolla/cmd/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index e51612c41e..ca92b0e7c7 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -192,7 +192,7 @@ class WorkerThread(Thread): def find_base_dir(): script_path = os.path.dirname(os.path.realpath(sys.argv[0])) if os.path.basename(script_path) == 'cmd': - return os.path.join(script_path, '..', '..') + return os.path.realpath(os.path.join(script_path, '..', '..')) if os.path.basename(script_path) == 'bin': return '/usr/share/kolla' if os.path.exists(os.path.join(script_path, 'tests')):