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
Łukasz Nowak
slapos.buildout
Commits
2b54a06c
Commit
2b54a06c
authored
Jun 09, 2006
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to generate nicer-reading and less dynamic scripts.
parent
0e313b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
src/zc/buildout/egglinker.py
src/zc/buildout/egglinker.py
+3
-13
No files found.
src/zc/buildout/egglinker.py
View file @
2b54a06c
...
...
@@ -22,7 +22,6 @@ assist in custom script generation.
$Id$
"""
# XXX needs doctest
# XXX need to deal with extras
import
os
...
...
@@ -88,7 +87,7 @@ def _script(dist, group, name, path, dest):
project
=
dist
.
project_name
,
name
=
name
,
module_name
=
entry_point
.
module_name
,
attrs
=
entry_point
.
attrs
,
attrs
=
'.'
.
join
(
entry_point
.
attrs
)
,
))
try
:
os
.
chmod
(
dest
,
0755
)
...
...
@@ -103,19 +102,10 @@ sys.path[0:0] = [
'%(path)s'
]
module = __import__(%(module_name)r, globals(),globals(), ['__name__'])
attrs = %(attrs)r
entry = module
for attr in attrs:
try:
entry = getattr(entry, attr)
except AttributeError:
raise ImportError("%%r has no %%r attribute" %% (module, attrs))
import %(module_name)s
if __name__ == '__main__':
entry
()
%(module_name)s.%(attrs)s
()
'''
...
...
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