What I want to do in a python script is sleep a number of seconds until the required time is reached. IE: if runAt setting is 15:20 and current time is 10:20, how can I wor
You could instead use the pause package [ https://pypi.python.org/pypi/pause/0.1.2 ]. Taking an example from their documentation -
pause
import pause, datetime dt = datetime.datetime(2013, 6, 2, 14, 36, 34, 383752) pause.until(dt)