first commit

This commit is contained in:
2024-05-07 15:24:55 +02:00
commit 7af6736f65

17
setup.py Normal file
View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from setuphelpers import *
import subprocess
hour_reboot = '12:00'
def install():
print('Création de la tâche de WAPTExit chaque jour à 12h00')
run(f'schtasks /create /tn "Launch WAPT Exit" /tr "waptexit" /sc daily /st {hour_reboot}')
def uninstall():
print('Suppression de la tâche de WAPTExit')
if task_exists("Launch WAPT Exit") is True:
run('schtasks /delete /tn "Launch WAPT Exit" /f')