Logo
Explore Help
Sign In
1berry/blender
1
0
Fork 0
You've already forked blender
Code Issues Packages Projects Releases Wiki Activity
blender/release/scripts/modules/bpy_sys.py

13 lines
249 B
Python
Raw Normal View History

Added "scripts/modules" as permanent module search path. - added bpy.sys as a python module - with bpy.sys.expandpath() - moved bpy.ops into scripts/modules - moved autocomplete into its own module from space_console.py
2009-09-28 04:29:01 +00:00
import bpy
import os
def expandpath(path):
tabs to spaces, remove trailing white space. (apart of pep8) didnt do "release/scripts/io" since some exporters cant be auto converted
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
Added "scripts/modules" as permanent module search path. - added bpy.sys as a python module - with bpy.sys.expandpath() - moved bpy.ops into scripts/modules - moved autocomplete into its own module from space_console.py
2009-09-28 04:29:01 +00:00
import types
bpy.sys = types.ModuleType("bpy.sys")
bpy.sys.expandpath = expandpath
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 131ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API