parameters: (self, tgt)
docstring: Change the ownership of the file/folder/link pointed by the given path
  		This looks up for `install_user` or `install_group` attributes
  		on the task or on the task generator::
  
  			def build(bld):
  				bld.install_as('${PREFIX}/wscript',
  					'wscript',
  					install_user='nobody', install_group='nogroup')
  				bld.symlink_as('${PREFIX}/wscript_link',
  					Utils.subst_vars('${PREFIX}/wscript', bld.env),
  					install_user='nobody', install_group='nogroup')
docstring_summary: Change the ownership of the file/folder/link pointed by the given path
  		This looks up for `install_user` or `install_group` attributes
  		on the task or on the task generator::
docstring_tokens: Change the ownership of the file / folder / link pointed by the given path This looks up for install_user or install_group attributes on the task or on the task generator ::
function: def fix_perms(self, tgt):
  		"""
  		Change the ownership of the file/folder/link pointed by the given path
  		This looks up for `install_user` or `install_group` attributes
  		on the task or on the task generator::
  
  			def build(bld):
  				bld.install_as('${PREFIX}/wscript',
  					'wscript',
  					install_user='nobody', install_group='nogroup')
  				bld.symlink_as('${PREFIX}/wscript_link',
  					Utils.subst_vars('${PREFIX}/wscript', bld.env),
  					install_user='nobody', install_group='nogroup')
  		"""
  		if not Utils.is_win32:
  			user = getattr(self, 'install_user', None) or getattr(self.generator, 'install_user', None)
  			group = getattr(self, 'install_group', None) or getattr(self.generator, 'install_group', None)
  			if user or group:
  				Utils.lchown(tgt, user or -1, group or -1)
  		if not os.path.islink(tgt):
  			os.chmod(tgt, self.chmod)
function_tokens: def fix_perms ( self , tgt ) : if not Utils . is_win32 : user = getattr ( self , 'install_user' , None ) or getattr ( self . generator , 'install_user' , None ) group = getattr ( self , 'install_group' , None ) or getattr ( self . generator , 'install_group' , None ) if user or group : Utils . lchown ( tgt , user or - 1 , group or - 1 ) if not os . path . islink ( tgt ) : os . chmod ( tgt , self . chmod )