diff options
author | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-02 02:29:15 +0400 |
---|---|---|
committer | Lukas Steiblys <imbusy@imbusy.org> | 2009-10-02 02:29:15 +0400 |
commit | 0677398a649b6b8c293df3ce3c6668f0a3be3bc8 (patch) | |
tree | 9d510a5bd23559bf4fae670ed04d7e5d6c12578c /release/scripts/modules/bpy_sys.py | |
parent | 59248e9f62006ba05e3098e4d213f3dcb23fe711 (diff) | |
parent | bc942eceacb638735dc4f4f68252c4c207147a70 (diff) |
merge from 23153 to 23595soc-2009-imbusy
Diffstat (limited to 'release/scripts/modules/bpy_sys.py')
-rw-r--r-- | release/scripts/modules/bpy_sys.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_sys.py b/release/scripts/modules/bpy_sys.py new file mode 100644 index 00000000000..e60e8b01d09 --- /dev/null +++ b/release/scripts/modules/bpy_sys.py @@ -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 |