]> mj.ucw.cz Git - home-hw.git/blobdiff - bsb/analyser/analyse.py
Auto: Meditation mode turned off
[home-hw.git] / bsb / analyser / analyse.py
old mode 100644 (file)
new mode 100755 (executable)
index f5fdd4b..86a52c1
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+
 import os
 import sys
 import datetime
@@ -176,5 +178,8 @@ def parse_file(name: str):
                 print(dt, 'ERROR({}): '.format(x) + " ".join(fields))
 
 
-parse_file('/var/log/bsb-frames')
-close_all()
\ No newline at end of file
+if len(sys.argv) > 1:
+    parse_file(sys.argv[1])
+else:
+    parse_file('/var/log/bsb-frames')
+close_all()