mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
added one second delay to background service
This commit is contained in:
parent
17ffaba4af
commit
c8887e1f65
|
@ -137,6 +137,7 @@ def watch_dir(watched_dir="/tmp", log_dir="/tmp/skooloslogs"):
|
||||||
NOTIFIER.start()
|
NOTIFIER.start()
|
||||||
sys.stdout = open("/dev/null", 'w')
|
sys.stdout = open("/dev/null", 'w')
|
||||||
wm.add_watch(watched_dir, mask, rec=True)
|
wm.add_watch(watched_dir, mask, rec=True)
|
||||||
|
time.sleep(1)
|
||||||
sys.stdout = logfile
|
sys.stdout = logfile
|
||||||
print("Start time: " +
|
print("Start time: " +
|
||||||
time.strftime("%A, %B %d, %Y %H:%M:%S", time.localtime()) + "\n")
|
time.strftime("%A, %B %d, %Y %H:%M:%S", time.localtime()) + "\n")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user