This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/intern/python/modules/Converter/importer/__init__.py

18 lines
437 B
Python
Raw Normal View History

2002-10-12 11:37:38 +00:00
"""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)