2009-10-31 20:16:59 +00:00
|
|
|
# This software is distributable under the terms of the GNU
|
|
|
|
# General Public License (GPL) v2, the text of which can be found at
|
|
|
|
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
|
|
|
|
# using this module constitutes acceptance of the terms of this License.
|
|
|
|
|
2009-09-28 04:29:01 +00:00
|
|
|
import bpy
|
|
|
|
import os
|
|
|
|
|
|
|
|
def expandpath(path):
|
2009-10-31 19:31:45 +00:00
|
|
|
if path.startswith("//"):
|
|
|
|
return os.path.join(os.path.dirname(bpy.data.filename), path[2:])
|
|
|
|
|
|
|
|
return path
|
2009-09-28 04:29:01 +00:00
|
|
|
|
|
|
|
import types
|
|
|
|
bpy.sys = types.ModuleType("bpy.sys")
|
|
|
|
bpy.sys.expandpath = expandpath
|