From 863ba8ae1ac09bb4371582759bc00002b0b373b6 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 15 May 2015 20:55:15 +0200 Subject: [PATCH] check for log dir - make it --- boswatch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boswatch.py b/boswatch.py index ead5a70..cade945 100644 --- a/boswatch.py +++ b/boswatch.py @@ -44,6 +44,9 @@ try: #Clear the Logfiles try: + if not os.path.isdir(script_path+"/log"): + os.mkdir(script_path+"/log") + script_path = os.path.dirname(os.path.abspath(__file__)) bos_log = open(script_path+"/log/log_bos.txt", "w") rtl_log = open(script_path+"/log/log_rtl.txt", "w")