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:
@@ -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
|
||||
|
Reference in New Issue
Block a user