]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat cli : remove unused paths from heat cli tool
authorSteven Hardy <shardy@redhat.com>
Tue, 14 Aug 2012 16:15:08 +0000 (17:15 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 15 Aug 2012 14:20:14 +0000 (15:20 +0100)
Cleanup the the jeos and cfntools paths which are no longer needed

Change-Id: Idc7d37446a0072e38369939cbd3fd5fb374c15c9
Signed-off-by: Steven Hardy <shardy@redhat.com>
bin/heat

index 4aa5638c279c3d67c22da40076cd55cba8cdf3ff..e8540663795075e173f23b2f077fead05ce7a271 100755 (executable)
--- 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])