Commit 29af717c authored by Domen Kožar's avatar Domen Kožar

Merge branch '1.6.x' of https://github.com/buildout/buildout into 1.6.x

parents 7490f058 28a29336
......@@ -423,11 +423,14 @@ class Buildout(UserDict.DictMixin):
def _init_config(self, config_file, args):
print 'Creating %r.' % config_file
f = open(config_file, 'w')
sep = re.compile(r'[\\/]')
if args:
sep = re.compile(r'[\\/]')
ossep = os.path.sep
if ossep == '\\':
ossep = '\\\\' # re.sub does not like a single backslash
eggs = '\n '.join(a for a in args if not sep.search(a))
paths = '\n '.join(
sep.sub(os.path.sep, a) for a in args if sep.search(a))
sep.sub(ossep, a) for a in args if sep.search(a))
f.write('[buildout]\n'
'parts = py\n'
'\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