Commit ff5cffeb authored by YoungKing's avatar YoungKing

Make relative_paths option work when path is equal to the relative path.

For example when you use the develop option like:

  [buildout]
  develop= .
parent 039ac65d
......@@ -1152,6 +1152,8 @@ def _relative_path(common, path):
def _relativitize(path, script, relative_paths):
if path == script:
raise AssertionError("path == script")
if path == relative_paths:
return "base"
common = os.path.dirname(os.path.commonprefix([path, script]))
if (common == relative_paths or
common.startswith(os.path.join(relative_paths, ''))
......
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