etc/fixbot-logwatch.py
changeset 46 ee58a22e5baa
parent 40 b9fdb7710768
child 48 ba101beeb062
--- a/etc/fixbot-logwatch.py	Thu Feb 04 20:11:23 2010 +0200
+++ b/etc/fixbot-logwatch.py	Thu Feb 04 20:11:36 2010 +0200
@@ -1,15 +1,17 @@
 from fixbot.logwatch import filters
 from fixbot.logwatch.sources import *
 
+import os.path
+
 ## shared secret for API client
 api_secret = "xyz"
 
 ## Path to logfiles
-logwatch_dir = "logs/"
+logwatch_dir = "logs"
 
 ## Iterable of LogSource objects
 logwatch_sources = (
-    Fifo("test", logwatch_dir + "/test.fifo", (
+    Fifo("test", os.path.join(logwatch_dir, "test.fifo"), (
         filters.all,
     )),
 )