Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bpy_sys.py « modules « scripts « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e60e8b01d09100fa46124bac0da64da24ebc32aa (plain)
1
2
3
4
5
6
7
8
9
10
11
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