~gary/zc.buildout/python-support-5-initial-egg-control

« back to all changes in this revision

Viewing changes to z3c.recipe.scripts_/src/z3c/recipe/scripts/tests.py

  • Committer: gary
  • Date: 2010-02-12 01:48:30 UTC
  • Revision ID: svn-v4:62d5b8a3-27da-0310-9561-8e5933582275:zc.buildout/branches/gary-4:108945
simplify resulting site.py function

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
    ... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
227
227
    #...
228
228
    def addsitepackages(known_paths):
229
 
        paths = []
 
229
        "..."
230
230
    <BLANKLINE>
231
231
        import os
232
232
    <BLANKLINE>
234
234
        base = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
235
235
        base = os.path.dirname(base)
236
236
        base = os.path.dirname(base)
237
 
        paths[0:0] = [ # eggs
 
237
        paths = [
 
238
            # Eggs.
238
239
            '/foo/bar',
239
240
            join(base, 'spam')
240
241
            ]...