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

importloader.py « Converter « modules « python « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 245ab108d1f6e3a4cf23f7226ed923e9be6f1c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# this is the importloader which blender calls on unknown
# file types

import importer

supported= {'wrl': importer.VRMLimporter}

def process(name):
	# run through importerlist and check for magic
	m = None
	for modname in importer.importers:
		mod = getattr(importer, modname)
		if mod.checkmagic(name):
			m = mod
			break
	if not m:
		return 0
	m.importfile(name)
	#except:
		#import sys
		#print "Import failed"sys.exc_value
	return 1