Exemplo n.º 1
0
 def repeat_session(self, args):
     print("Sleep for {} minutes".format(self.repeat))
     try:
         sleep(60 * self.repeat)
         refresh_args_by_conf_file(args)
     except KeyboardInterrupt:
         print_full_report(self.sessions)
         self.sessions.persist(self.session_state.my_username)
         sys.exit(0)
Exemplo n.º 2
0
 def repeat_session(self, args):
     print("Sleep for {} minutes".format(self.repeat))
     try:
         sleep(60 * self.repeat)
         return refresh_args_by_conf_file(args, self.next_config_file)
     except KeyboardInterrupt:
         print_full_report(self.sessions)
         sys.exit(0)