From ffeda71756840a13640a101016967bd7ab5b1166 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 7 May 2012 18:25:48 +1000 Subject: [PATCH] Remove unused "cloudinit_path" setup in resources.py Signed-off-by: Angus Salkeld --- heat/engine/resources.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/heat/engine/resources.py b/heat/engine/resources.py index 53a711e6..8a0310cb 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -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): -- 2.45.2