]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Remove unused "cloudinit_path" setup in resources.py
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 7 May 2012 08:25:48 +0000 (18:25 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 7 May 2012 08:25:48 +0000 (18:25 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/resources.py

index 53a711e6c6531aa6c87c0d70aaa386ba5d9e739b..8a0310cb937ba5a7710a6265c5857fabc461f1d1 100644 (file)
@@ -30,19 +30,6 @@ from heat.db import api as db_api
 from heat.common.config import HeatEngineConfigOpts
 
 logger = logging.getLogger(__file__)
-# If ../heat/__init__.py exists, add ../ to Python search path, so that
-# it will override what happens to be installed in /usr/(local/)lib/python...
-possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
-                                   os.pardir,
-                                   os.pardir))
-if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
-    sys.path.insert(0, possible_topdir)
-    cloudinit_path = '%s/heat/%s/' % (possible_topdir, "cloudinit")
-else:
-    for p in sys.path:
-        if 'heat' in p:
-            cloudinit_path = '%s/heat/%s/' % (p, "cloudinit")
-            break
 
 
 class Resource(object):