1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

wscript: avoid inefficient string concatenations

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
This commit is contained in:
Björn Jacke 2019-08-25 23:09:19 +02:00 committed by Bjoern Jacke
parent b3b6b700c4
commit 5ad629dcb9

View File

@ -419,10 +419,9 @@ def wafdocs(ctx):
os.system('pwd')
list = recursive_dirlist('../buildtools/wafsamba', '.', pattern='*.py')
cmd='PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext'
print(list)
for f in list:
cmd += ' --add-module %s' % f
cmd='PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext' +\
"".join(' --add-module %s' % f for f in list)
print("Running: %s" % cmd)
status = os.system(cmd)
if os.WEXITSTATUS(status):