mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
making bgservice ready
This commit is contained in:
parent
17ffaba4af
commit
1ebaaa51b5
|
@ -3,6 +3,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import pyinotify
|
import pyinotify
|
||||||
import checker
|
import checker
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
class EventHandler(pyinotify.ProcessEvent):
|
class EventHandler(pyinotify.ProcessEvent):
|
||||||
|
@ -112,7 +113,7 @@ DIR = None
|
||||||
START_TIME = None
|
START_TIME = None
|
||||||
|
|
||||||
|
|
||||||
def watch_dir(watched_dir="/tmp", log_dir="/tmp/skooloslogs"):
|
def watch_dir(watched_dir=str(Path.home()), log_dir="SkoolOS/logs"):
|
||||||
"""
|
"""
|
||||||
Watches the specified directory for changes and outputs it in
|
Watches the specified directory for changes and outputs it in
|
||||||
human readable format to a log file in the specified log directory.
|
human readable format to a log file in the specified log directory.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user