Commits

Cedric Pinson committed 005a441

make possible to use a var env to append the path of export, useful when scripting

Comments (0)

Files changed (1)

blenderExporter/osgExport.py

 import Blender
 
 sys.path.insert(0, "./")
-sys.path.append(os.path.join(Blender.Get("scriptsdir"),"blenderExporter"))
+BlenderExporterDir = os.getenv("BlenderExporter", os.path.join(Blender.Get("scriptsdir"),"blenderExporter"))
+print "BlenderExporter directory ", BlenderExporterDir
+sys.path.append(BlenderExporterDir)
 
 import bpy
 import osg