"""Declare the Koztumize application using Pynuts."""

import ldap
from pynuts import Pynuts


class Koztumize(Pynuts):
    """The class which open the ldap."""
    @property
    def ldap(self):
        """Open the ldap."""
        if 'LDAP' not in self.config:  # pragma: no cover
            self.config['LDAP'] = ldap.open(self.config['LDAP_HOST'])
        return self.config['LDAP']


app = Koztumize(
    __name__, config_file='config/config.cfg')  # pylint: disable=C0103

@@ -48,16 +48,26 @@
 ts.%22%22%22%0A%0A
+import os%0A
 import l
@@ -408,16 +408,41 @@
 ztumize(
+  # pylint: disable=E1101
 %0A    __n
@@ -447,16 +447,20 @@
 _name__,
+%0A   
  config_
@@ -468,50 +468,63 @@
 ile=
-'config/config.cfg')  # pylint: disable=C0103
+os.environ.get('KOZTUMIZE_CONFIG') or 'config/config.cfg')
 %0A

Use an environment variable as config file