def update_completed(self):
"""
return an instance of subprocess.CompletedProcess
"""
command = [ "nbh", "course-update-from-git", self.coursename ]
completed = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return completed
评论列表
文章目录