use os.path.join in etc/fixbot-logwatch.py
authorTero Marttila <terom@fixme.fi>
Thu, 04 Feb 2010 20:11:36 +0200
changeset 46 ee58a22e5baa
parent 45 5f35f8ce452b
child 47 81b37185209c
use os.path.join in etc/fixbot-logwatch.py
etc/fixbot-logwatch.py
--- 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,
     )),
 )