From 1ebaaa51b57558d99a382841cd7ef18fd986a944 Mon Sep 17 00:00:00 2001 From: rushilwiz Date: Tue, 16 Jun 2020 21:13:41 -0400 Subject: [PATCH] making bgservice ready --- bgservice/bgservice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgservice/bgservice.py b/bgservice/bgservice.py index 09b78ba..c493169 100644 --- a/bgservice/bgservice.py +++ b/bgservice/bgservice.py @@ -3,6 +3,7 @@ import sys import os import pyinotify import checker +from pathlib import Path class EventHandler(pyinotify.ProcessEvent): @@ -112,7 +113,7 @@ DIR = 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 human readable format to a log file in the specified log directory.