Esempio n. 1
0
    def considerExtraDlls(dist_dir, module):
        result = []

        for plugin in active_plugin_list:
            for extra_dll in plugin.considerExtraDlls(dist_dir, module):
                assert isFile(extra_dll[0])

                result.append(extra_dll)

        return result
Esempio n. 2
0
    def considerExtraDlls(dist_dir, module):
        result = []

        for plugin in active_plugin_list:
            for extra_dll in plugin.considerExtraDlls(dist_dir, module):
                assert isFile(extra_dll[0])

                result.append(extra_dll)

        return result
    def considerDataFiles(self, module):
        if module.getFullName() in known_data_files:
            for filename in known_data_files[module.getFullName()]:
                source_path = joinpath(module.getCompileTimeFilename(),
                                       filename)

                # so we can ".." out from what is a filename, we have to
                # normalize the result, or else checking for existance or
                # opening it will fail.
                source_path = normpath(source_path)

                if isFile(source_path):
                    yield (source_path,
                           normpath(
                               joinpath(
                                   module.getFullName().replace(
                                       '.', os.path.sep), filename)))
    def considerDataFiles(self, module):
        if module.getFullName() in known_data_files:
            for filename in known_data_files[module.getFullName()]:
                source_path = joinpath(
                    module.getCompileTimeFilename(),
                    filename
                )

                # so we can ".." out from what is a filename, we have to
                # normalize the result, or else checking for existance or
                # opening it will fail.
                source_path = normpath(source_path)

                if isFile(source_path):
                    yield (
                        source_path,
                        normpath(
                            joinpath(
                                module.getFullName().replace('.', os.path.sep),
                                filename
                            )
                        )
                    )