Fix the api documentation

This commit is contained in:
Thomas Nagy 2016-10-08 23:29:46 +02:00
parent f02047b8ea
commit 4ed44b2e99
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 7 additions and 7 deletions

View File

@ -1190,13 +1190,13 @@ class inst(Task.Task):
This looks up for `install_user` or `install_group` attributes This looks up for `install_user` or `install_group` attributes
on the task or on the task generator:: on the task or on the task generator::
def build(bld): def build(bld):
bld.install_as('${PREFIX}/wscript', bld.install_as('${PREFIX}/wscript',
'wscript', 'wscript',
install_user='nobody', install_group='nogroup') install_user='nobody', install_group='nogroup')
bld.symlink_as('${PREFIX}/wscript_link', bld.symlink_as('${PREFIX}/wscript_link',
Utils.subst_vars('${PREFIX}/wscript', bld.env), Utils.subst_vars('${PREFIX}/wscript', bld.env),
install_user='nobody', install_group='nogroup') install_user='nobody', install_group='nogroup')
""" """
if not Utils.is_win32: if not Utils.is_win32:
user = getattr(self, 'install_user', None) or getattr(self.generator, 'install_user', None) user = getattr(self, 'install_user', None) or getattr(self.generator, 'install_user', None)