Commit da697e8e authored by Lucas Carvalho's avatar Lucas Carvalho

To use slapos, such patch is required. comes from bug_767190.

parent 471fe5bf
...@@ -1447,6 +1447,22 @@ def _open(base, filename, seen, dl_options, override, downloaded): ...@@ -1447,6 +1447,22 @@ def _open(base, filename, seen, dl_options, override, downloaded):
filename) filename)
result[section] = options result[section] = options
# find and expose _profile_base_location_ and _profile_location_
for section, value in result.iteritems():
_profile_base_location_ = None
_profile_location_ = None
for k,v in value.iteritems():
if '${:_profile_base_location_}' in v:
_profile_base_location_ = base
if '${:_profile_location_}' in v:
_profile_location_ = filename
if _profile_base_location_ is not None and _profile_location_ is not None:
break
if _profile_base_location_ is not None:
value['_profile_base_location_'] = _profile_base_location_
if _profile_location_ is not None:
value['_profile_location_'] = _profile_location_
result = _annotate(result, filename) result = _annotate(result, filename)
if root_config_file and 'buildout' in result: if root_config_file and 'buildout' in result:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment