From c2382317de4693ee366de99938899ed00685b8ec Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Tue, 14 Aug 2012 17:15:08 +0100 Subject: [PATCH] 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 --- bin/heat | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bin/heat b/bin/heat index 4aa5638c27..e854066379 100755 --- a/bin/heat +++ b/bin/heat @@ -35,20 +35,8 @@ from urlparse import urlparse possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)) -jeos_path = '' -cfntools_path = '' if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')): 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])