summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-05 19:53:57 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-05 19:53:57 +0100
commit68422fedfe7d5db35bbb12a6ac765a7507fd6ff5 (patch)
treeeb5b99e4152b7220a9a50e8c519b227e80fb091e /bin
parentd9a7b05a12559e37d0e61b4e3dc85e4d3b27b19a (diff)
downloadpykolab-68422fedfe7d5db35bbb12a6ac765a7507fd6ff5.tar.gz
Correct path to cache
Diffstat (limited to 'bin')
-rw-r--r--bin/kolab_smtp_access_policy.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index e021d53..cfaadaf 100644
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -35,7 +35,7 @@ from pykolab.constants import KOLAB_LIB_PATH
from pykolab.translate import _
log = pykolab.getLogger('pykolab.smtp_access_policy')
-log.remove_stdout_handler()
+#log.remove_stdout_handler()
conf = pykolab.getConf()
@@ -51,18 +51,18 @@ cache_expire = 3600
try:
from buzhug import TS_Base
- if os.access(KOLAB_LIB_PATH, os.W_OK):
+ if os.access(os.path.join(KOLAB_LIB_PATH, 'kolab_smtp_access_policy', os.W_OK):
cache_path = os.path.join(
KOLAB_LIB_PATH,
+ 'kolab_smtp_access_policy',
'cache'
- 'kolab_smtp_access_policy'
)
elif os.access('/tmp/', os.W_OK):
cache_path = os.path.join(
'/tmp/',
- 'cache',
- 'kolab_smtp_access_policy'
+ 'kolab_smtp_access_policy',
+ 'cache'
)
if os.path.exists(cache_path):