From: Steven Hardy Date: Tue, 14 Aug 2012 16:15:08 +0000 (+0100) Subject: heat cli : remove unused paths from heat cli tool X-Git-Tag: 2014.1~1535 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c2382317de4693ee366de99938899ed00685b8ec;p=openstack-build%2Fheat-build.git 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 --- diff --git a/bin/heat b/bin/heat index 4aa5638c..e8540663 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])