python - add time.sleep() to instruction instead of new line -
i have lot of necessary time.sleep() in script. want clean code , possibly append wait/pause previous line instead of creating new line. example:
call(['networksetup', '-setv4off', 'direct ip']) time.sleep(5) is there way of achieving this? (python 3.4)
thanks in advance.
if mean combine these 2 lines in 1 line, try:
call(['networksetup', '-setv4off', 'direct ip']); time.sleep(5)
Comments
Post a Comment