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:
parent
b3b6b700c4
commit
5ad629dcb9
5
wscript
5
wscript
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user