Commit b68f587e authored by hannosch's avatar hannosch

Remove duplicate path from script's sys.path setup.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@120882 62d5b8a3-27da-0310-9561-8e5933582275
parent 68a7f7a4
......@@ -4,6 +4,8 @@ Change History
1.5.3 (unreleased)
==================
- Remove duplicate path from script's sys.path setup.
- changed broken dash S check to pass the configuration options
-S -c separately, to make zc.buildout more compatible with the PyPy
interpreter, which has less flexible argument parsing than CPython.
......
......@@ -1301,7 +1301,12 @@ def _get_path(working_set, extra_paths=()):
"""Given working set and extra paths, return a normalized path list."""
path = [dist.location for dist in working_set]
path.extend(extra_paths)
return map(realpath, path)
# order preserving unique
unique_path = []
for p in path:
if p not in unique_path:
unique_path.append(p)
return map(realpath, unique_path)
def _generate_scripts(reqs, working_set, dest, path, scripts, relative_paths,
initialization, executable, arguments,
......
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