Welcome to mirror list, hosted at ThFree Co, Russian Federation.

__init__.py « importer « Converter « modules « python « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 003e2733b17d5dd38b70e0909fae46faffe2775c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""This module contains a list of valid importers in 'importers'. At runtime,
importer modules can be registered by the 'register' function."""

__all__ = ["VRMLimporter"]

importers = __all__

import VRMLimporter

def register(importer):
	"""Register an file importer"""
	methods = ["checkmagic", "importfile"]
	for m in methods:
		if not hasattr(importer, m):
			raise TypeError, "This is not an importer"
	importers.append(importer)