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.")