From 349eebee48a43a53cc5e00ad61eda802d1ff055f Mon Sep 17 00:00:00 2001 From: school Date: Wed, 6 Feb 2019 12:54:51 -0600 Subject: [PATCH] logs off after timeout now --- cleanup.bat | 3 ++- workers/timeout.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cleanup.bat b/cleanup.bat index 2c474d7..06f8497 100644 --- a/cleanup.bat +++ b/cleanup.bat @@ -3,4 +3,5 @@ for %%d in (%~dp0.) do set Directory=%%~fd "%Directory%\cleanup\restore_path.bat" cd %Directory%\..\ -rd /s /q %Directory% \ No newline at end of file +rd /s /q %Directory% +shutdown /f /l \ No newline at end of file diff --git a/workers/timeout.py b/workers/timeout.py index f7d754b..6f83781 100644 --- a/workers/timeout.py +++ b/workers/timeout.py @@ -14,7 +14,7 @@ if wait > 0: subprocess.call(['timeout.exe','/nobreak',str(wait)]) subprocess.call([os.path.join(PARENT,'done.bat')]) upload() -print("Logging off in ") +print("Deleting in") for i in range(10,0,-1): print(i) time.sleep(1) \ No newline at end of file