summaryrefslogtreecommitdiffstats
path: root/functest/utils/constants.py
blob: 75c97c765075a1ab9edf659f3d4ccc58870115a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import six

from functest.utils import config
from functest.utils import env


class Constants(object):
    def __init__(self):
        for attr_n, attr_v in six.iteritems(config.CONF.__dict__):
            self.__setattr__(attr_n, attr_v)
        for env_n, env_v in six.iteritems(env.ENV.__dict__):
            self.__setattr__(env_n, env_v)


CONST = Constants()