new python submodule. eg.

from bpy.app import binary_path, version, version_string, home

can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
This commit is contained in:
Campbell Barton
2010-01-02 23:14:01 +00:00
parent e7d863cee5
commit 04d0261c37
7 changed files with 34 additions and 9 deletions

View File

@@ -121,7 +121,7 @@ class INFO_MT_file_open_recent(bpy.types.Menu):
import os
layout = self.layout
layout.operator_context = 'EXEC_AREA'
file = open(os.path.join(bpy.home, ".Blog"), "rU")
file = open(os.path.join(bpy.app.home, ".Blog"), "rU")
for line in file:
line = line.rstrip()
layout.operator("wm.open_mainfile", text=line, icon='FILE_BLEND').path = line