You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
250 B

  1. from dateutil.parser import parse
  2. from upload import upload
  3. import datetime
  4. import os
  5. import subprocess
  6. import time
  7. t = parse(input("Enter endtime: "))
  8. wait = (t-datetime.datetime.today()).seconds
  9. subprocess.call(['timeout.exe','/nobreak',str(wait)])