本文整理匯總了Python中distutils.core.Command.reinitialize_command方法的典型用法代碼示例。如果您正苦於以下問題:Python Command.reinitialize_command方法的具體用法?Python Command.reinitialize_command怎麽用?Python Command.reinitialize_command使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類distutils.core.Command
的用法示例。
在下文中一共展示了Command.reinitialize_command方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: reinitialize_command
# 需要導入模塊: from distutils.core import Command [as 別名]
# 或者: from distutils.core.Command import reinitialize_command [as 別名]
def reinitialize_command(self, command, reinit_subcommands=0, **kw):
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
vars(cmd).update(kw)
return cmd
# we can't patch distutils.cmd, alas
示例2: reinitialize_command
# 需要導入模塊: from distutils.core import Command [as 別名]
# 或者: from distutils.core.Command import reinitialize_command [as 別名]
def reinitialize_command(self, command, reinit_subcommands=0, **kw):
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
for k,v in kw.items():
setattr(cmd,k,v) # update command with keywords
return cmd