diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-08 09:43:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-08 09:45:50 +0300 |
commit | 79840abf6d58af1dab801f4e5718bca0df4ad1a9 (patch) | |
tree | 8ce850b3020810eb41583a5d8ee045d8b232480e /release/scripts/modules/bpy/__init__.py | |
parent | fb20efae596565e4498fd0ea0ba310d977bab274 (diff) |
PyAPI: use real modules for bpy.ops
Python 3.7x added support for module `__getattr__` & `__dir__`.
Make use of this for operator access,
previously these were module like classes.
No functional changes, this is mostly to use a type which is expected,
rather than faking the type with a class instance.
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r-- | release/scripts/modules/bpy/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py index a80135a59e1..3fc5f54b77b 100644 --- a/release/scripts/modules/bpy/__init__.py +++ b/release/scripts/modules/bpy/__init__.py @@ -46,13 +46,11 @@ from _bpy import ( # python modules from . import ( + ops, path, utils, ) -# fake operator module -from .ops import ops_fake_module as ops - def main(): import sys |