Commit 8725ff32 authored by Lorenz Steinert's avatar Lorenz Steinert

fixed import Error Error

parent c5f9d8a7
......@@ -12,7 +12,7 @@ import sys
import shutil
import codecs
import argparse
from module.esme import FsrLdap, get_date, get_sprecher, get_config, get_share, get_path, get_ldap_server, get_ldap_base, get_server_timeout
from module.esme import FsrLdap, get_date, get_sprecher, get_config, get_share, get_path, get_ldap_server, get_ldap_base, get_server_timeout, Error
def build_parser():
......@@ -159,18 +159,18 @@ if __name__ == "__main__":
RUNDIR = os.path.dirname(os.path.realpath(__file__))
OPT = build_parser()
CONFIG = get_config(RUNDIR, OPT.config)
if CONFIG is esme.Error.NO_FILE:
if CONFIG is Error.NO_FILE:
print("No config-file found. Stoping.")
sys.exit(CONFIG)
elif CONFIG is esme.Error.NO_DEFAULT_FILE:
elif CONFIG is Error.NO_DEFAULT_FILE:
print("No default config-file found. Stopping.")
sys.exit(CONFIG)
SHARE_DIR = get_share(RUNDIR, CONFIG, OPT.sharedir)
if SHARE_DIR is esme.Error.NO_DIR:
if SHARE_DIR is Error.NO_DIR:
print("No sharedir found. Stopping.")
sys.exit(SHARE_DIR)
elif SHARE_DIR is esme.Error.NO_DEFAULT_DIR:
elif SHARE_DIR is Error.NO_DEFAULT_DIR:
print("No default sharedir found. Stopping.")
sys.exit(SHARE_DIR)
LDAP_SERVER = get_ldap_server(CONFIG, OPT.Server)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment