From 86d9979a7f3d5f88d84e6a3b5bcb597db888d729 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 16 Jul 2019 17:53:14 -0600 Subject: [PATCH] Added sleep() --- scripts/wk/std.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index ec829d63..37949af6 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -6,6 +6,7 @@ import logging import os import re import sys +import time try: from termios import tcflush, TCIOFLUSH @@ -148,5 +149,11 @@ def strip_colors(string): return string +def sleep(seconds=2): + """Simple wrapper for time.sleep.""" + LOG.debug('Sleeping for %s seconds', seconds) + time.sleep(seconds) + + if __name__ == '__main__': print("This file is not meant to be called directly.")