# Path: zoe_lib/config.py
# def get_conf() -> Namespace:
#     """Returns the conf singleton."""
#     return _CONF


import logging
import os
import json
import markdown
from zoe_lib.config import get_conf
        self.readable_description_file = zapp['readable_descr']
        self.readable_description = self.read_description()
        self.json_file = zapp['description']
        self.zoe_description = self.parse_json_description()
        if 'labels' in zapp:
            self.labels = zapp['labels']
        else:
            self.labels = []
        self.parameters = []
        self.parse_parameters(zapp)
        if 'logo' in zapp:
            self.logo = zapp['logo']
        else:
            self.logo = 'logo.png'
        if 'enabled_for' in zapp:
            self.enabled_for = zapp['enabled_for']
        else:
            self.enabled_for = ["all"]
        if 'disabled_for' in zapp:
            self.disabled_for = zapp['disabled_for']
        else:
            self.disabled_for = []

    def parse_parameters(self, zapp_manifest):
        """Translates the parameters from the manifest into objects."""
        for param in zapp_manifest['parameters']:
            self.parameters.append(ZAppParameter(param))

    def read_description(self):
        """Reads and renders the README.md file."""

# Path: zoe_lib/config.py
# def get_conf() -> Namespace:
#     """Returns the conf singleton."""
#     return _CONF


# Path: zoe_api/zapp_shop.py
import logging
import os
import json
import markdown
from zoe_lib.config import get_conf

        self.readable_description_file = zapp['readable_descr']
        self.readable_description = self.read_description()
        self.json_file = zapp['description']
        self.zoe_description = self.parse_json_description()
        if 'labels' in zapp:
            self.labels = zapp['labels']
        else:
            self.labels = []
        self.parameters = []
        self.parse_parameters(zapp)
        if 'logo' in zapp:
            self.logo = zapp['logo']
        else:
            self.logo = 'logo.png'
        if 'enabled_for' in zapp:
            self.enabled_for = zapp['enabled_for']
        else:
            self.enabled_for = ["all"]
        if 'disabled_for' in zapp:
            self.disabled_for = zapp['disabled_for']
        else:
            self.disabled_for = []

    def parse_parameters(self, zapp_manifest):
        """Translates the parameters from the manifest into objects."""
        for param in zapp_manifest['parameters']:
            self.parameters.append(ZAppParameter(param))

    def read_description(self):
        """Reads and renders the README.md file."""

        mdown = open(os.path.join(get_conf().zapp_shop_path, self.id, self.readable_description_file), 'r', encoding='utf-8').read()