heat cli : remove unused paths from heat cli tool
Cleanup the the jeos and cfntools paths which are no longer needed Change-Id: Idc7d37446a0072e38369939cbd3fd5fb374c15c9 Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
parent
08836e3249
commit
c2382317de
12
bin/heat
12
bin/heat
|
@ -35,20 +35,8 @@ from urlparse import urlparse
|
||||||
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
||||||
os.pardir,
|
os.pardir,
|
||||||
os.pardir))
|
os.pardir))
|
||||||
jeos_path = ''
|
|
||||||
cfntools_path = ''
|
|
||||||
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
|
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
|
||||||
sys.path.insert(0, possible_topdir)
|
sys.path.insert(0, possible_topdir)
|
||||||
jeos_path = '%s/heat/%s/' % (possible_topdir, "jeos")
|
|
||||||
cfntools_path = '%s/heat/%s/' % (possible_topdir, "cfntools")
|
|
||||||
jeos_path = os.path.join(possible_topdir, 'jeos')
|
|
||||||
cfntools_path = os.path.join(possible_topdir, 'cfntools')
|
|
||||||
else:
|
|
||||||
for p in sys.path:
|
|
||||||
jeos_path = os.path.join(p, 'heat', 'jeos')
|
|
||||||
cfntools_path = os.path.join(p, 'heat', 'cfntools')
|
|
||||||
if os.access(jeos_path, os.R_OK):
|
|
||||||
break
|
|
||||||
|
|
||||||
scriptname = os.path.basename(sys.argv[0])
|
scriptname = os.path.basename(sys.argv[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue