diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2015-11-06 13:51:08 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2015-11-06 15:10:41 +0800 |
| commit | 27c3f6ff48e91b47052959dcffde66cfb66c5571 (patch) | |
| tree | d08203c4622c4e6ec44f6991c023739673f7447b /kolla/cmd | |
| parent | 2b02001e345bbe37a81fd156704078a4747e4a84 (diff) | |
| download | kolla-27c3f6ff48e91b47052959dcffde66cfb66c5571.tar.gz kolla-27c3f6ff48e91b47052959dcffde66cfb66c5571.zip | |
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
Diffstat (limited to 'kolla/cmd')
| -rwxr-xr-x | kolla/cmd/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index e51612c41..ca92b0e7c 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')): |
