summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jwebmail/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index ff6d17c..fe32430 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -1,7 +1,7 @@
-import os.path as os_path
import sys
from datetime import datetime
from os import environ
+from shutil import which
from babel import parse_locale
from flask import Flask, abort, g, redirect, url_for
@@ -36,7 +36,7 @@ else:
toml_read_file = dict(load=toml_load, text=True)
-__version__ = "2.6.0.dev1"
+__version__ = "2.6.0.dev2"
csrf = CSRFProtect()
@@ -46,9 +46,9 @@ def validate_config(app):
assert "@" in conf["JWEBMAIL"]["ADMIN_MAIL"]
- assert os_path.isfile(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
+ assert which(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
- assert os_path.isfile(
+ assert which(
conf["JWEBMAIL"]["READ_MAILS"].setdefault("AUTHENTICATOR", "qmail-authuser")
)