merge with trunk/2.5 at r23876
[[Split portion of a mixed commit.]]
This commit is contained in:
12
release/scripts/modules/bpy_sys.py
Normal file
12
release/scripts/modules/bpy_sys.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import bpy
|
||||
import os
|
||||
|
||||
def expandpath(path):
|
||||
if path.startswith("//"):
|
||||
return os.path.join(os.path.dirname(bpy.data.filename), path[2:])
|
||||
|
||||
return path
|
||||
|
||||
import types
|
||||
bpy.sys = types.ModuleType("bpy.sys")
|
||||
bpy.sys.expandpath = expandpath
|
||||
Reference in New Issue
Block a user