# Path: fuzzy/utils.py
# def prop(func):
# def checkRange(value,ranges):


    import os,imp
from fuzzy.utils import inf_p,inf_n
#
"""\
# Helper utilities for tests.
#  - Find all classes in directory and return creates instances of them.
#  - Get lists of values to use for show-off of parametric classes 
#    depending on the allowed range of the parameters there
"""
#
# Copyright (C) 2009  Rene Liebscher
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free 
# Software Foundation; either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT 
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public License along with 
# this program; if not, see <http://www.gnu.org/licenses/>. 
#


__revision__ = "$Id: utils.py,v 1.6 2009/09/28 15:26:46 rliebscher Exp $"

def get_classes(package):
    """Find all classes defined in given directory
    and return them as dictionary {name,instance}"""
    package_name = package.__name__

# Path: fuzzy/utils.py
# def prop(func):
# def checkRange(value,ranges):


# Path: demo/utils.py
    import os,imp
from fuzzy.utils import inf_p,inf_n

#
"""\
# Helper utilities for tests.
#  - Find all classes in directory and return creates instances of them.
#  - Get lists of values to use for show-off of parametric classes 
#    depending on the allowed range of the parameters there
"""
#
# Copyright (C) 2009  Rene Liebscher
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free 
# Software Foundation; either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT 
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public License along with 
# this program; if not, see <http://www.gnu.org/licenses/>. 
#


__revision__ = "$Id: utils.py,v 1.6 2009/09/28 15:26:46 rliebscher Exp $"

def get_classes(package):
    """Find all classes defined in given directory
    and return them as dictionary {name,instance}"""
    package_name = package.__name__

    classes_dir = os.path.dirname(package.__file__)