def auto_run(self, files, dirs):
while(True):
print '\nTo show a list of files and dirs to be changed press "l"'
print 'To update the destination press "u"'
print 'To quit type q\n'
command = msvcrt.getch()
if command.lower() == 'l':
self.run_type(files, dirs, commit_changes = False)
elif command.lower() == 'u':
self.update(files, dirs, commit_changes = True)
break
elif command.lower() == 'q':
break
else:
pass
评论列表
文章目录