Commit 66ae822d authored by Jim Fulton's avatar Jim Fulton

tweaked a windows tweak to work on unix-like systems

parent 9a89e190
...@@ -393,8 +393,9 @@ class Buildout(DictMixin): ...@@ -393,8 +393,9 @@ class Buildout(DictMixin):
sep = re.compile(r'[\\/]') sep = re.compile(r'[\\/]')
if args: if args:
eggs = '\n '.join(a for a in args if not sep.search(a)) eggs = '\n '.join(a for a in args if not sep.search(a))
sepsub = os.path.sep == '/' and '/' or re.escape(os.path.sep)
paths = '\n '.join( paths = '\n '.join(
sep.sub(re.escape(os.path.sep), a) sep.sub(sepsub, a)
for a in args if sep.search(a)) for a in args if sep.search(a))
f.write('[buildout]\n' f.write('[buildout]\n'
'parts = py\n' 'parts = py\n'
......
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