# Path: jasmine/utils.py
# def iglob(path_glob):
#     """Extended globbing function that supports ** and {opt1,opt2,opt3}."""
#     if _CHECK_RECURSIVE_GLOB.search(path_glob):
#         msg = """invalid glob %r: recursive glob "**" must be used alone"""
#         raise ValueError(msg % path_glob)
#     if _CHECK_MISMATCH_SET.search(path_glob):
#         msg = """invalid glob %r: mismatching set marker '{' or '}'"""
#         raise ValueError(msg % path_glob)
#     return _iglob(path_glob)


import os
from yaml import load, Loader
from jasmine_core import Core
from jasmine.utils import iglob
        # fix py26 relpath from root bug http://bugs.python.org/issue5117
        return [
            relpath[3:] if relpath.startswith("../") else relpath
            for relpath in relpaths
        ]

    def _make_absolute(self, path, relative_to):
        return (
            path if path.startswith('http')
            else os.path.abspath(
                os.path.join(self.project_path, relative_to, path)
            )
        )

    def _expland_globs(self, path):
        return (
            [path] if path.startswith('http')
            else self._glob_paths([path])
        )

    def _make_relative(self, path, relative_to):
        return (
            path if path.startswith('http')
            else os.path.relpath(path, relative_to)
        )

    def _glob_paths(self, paths):
        files = []

        for src_glob in paths:

# Path: jasmine/utils.py
# def iglob(path_glob):
#     """Extended globbing function that supports ** and {opt1,opt2,opt3}."""
#     if _CHECK_RECURSIVE_GLOB.search(path_glob):
#         msg = """invalid glob %r: recursive glob "**" must be used alone"""
#         raise ValueError(msg % path_glob)
#     if _CHECK_MISMATCH_SET.search(path_glob):
#         msg = """invalid glob %r: mismatching set marker '{' or '}'"""
#         raise ValueError(msg % path_glob)
#     return _iglob(path_glob)


# Path: jasmine/config.py
import os
from yaml import load, Loader
from jasmine_core import Core
from jasmine.utils import iglob

        # fix py26 relpath from root bug http://bugs.python.org/issue5117
        return [
            relpath[3:] if relpath.startswith("../") else relpath
            for relpath in relpaths
        ]

    def _make_absolute(self, path, relative_to):
        return (
            path if path.startswith('http')
            else os.path.abspath(
                os.path.join(self.project_path, relative_to, path)
            )
        )

    def _expland_globs(self, path):
        return (
            [path] if path.startswith('http')
            else self._glob_paths([path])
        )

    def _make_relative(self, path, relative_to):
        return (
            path if path.startswith('http')
            else os.path.relpath(path, relative_to)
        )

    def _glob_paths(self, paths):
        files = []

        for src_glob in paths:

            files.extend([os.path.abspath(x) for x in iglob(src_glob)])