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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'development_edit_operator.py')
-rw-r--r--development_edit_operator.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/development_edit_operator.py b/development_edit_operator.py
index e51df36e..bd406e49 100644
--- a/development_edit_operator.py
+++ b/development_edit_operator.py
@@ -4,8 +4,8 @@
bl_info = {
"name": "Edit Operator Source",
"author": "scorpion81",
- "version": (1, 2, 2),
- "blender": (2, 80, 0),
+ "version": (1, 2, 3),
+ "blender": (3, 2, 0),
"location": "Text Editor > Sidebar > Edit Operator",
"description": "Opens source file of chosen operator or call locations, if source not available",
"warning": "",
@@ -30,18 +30,6 @@ from bpy.props import (
IntProperty
)
-def stdlib_excludes():
- #need a handy list of modules to avoid walking into
- import distutils.sysconfig as sysconfig
- excludes = []
- std_lib = sysconfig.get_python_lib(standard_lib=True)
- for top, dirs, files in os.walk(std_lib):
- for nm in files:
- if nm != '__init__.py' and nm[-3:] == '.py':
- excludes.append(os.path.join(top, nm)[len(std_lib)+1:-3].replace('\\','.'))
-
- return excludes
-
def make_loc(prefix, c):
#too long and not helpful... omitting for now
space = ""
@@ -219,8 +207,10 @@ class TEXT_OT_EditOperator(Operator):
def show_calls(self, context):
import bl_ui
import addon_utils
+ import sys
- exclude = stdlib_excludes()
+ exclude = []
+ exclude.extend(sys.stdlib_module_names)
exclude.append("bpy")
exclude.append("sys")