Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
35505947
Commit
35505947
authored
Apr 20, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple implementation of fetching and setting profile location base location.
parent
90302f13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+16
-0
No files found.
src/zc/buildout/buildout.py
View file @
35505947
...
...
@@ -1514,6 +1514,22 @@ def _open(base, filename, seen, dl_options, override, downloaded):
filename
)
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
)
if
root_config_file
and
'buildout'
in
result
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment