PyAPI: disallow assigning members to 'bpy.ops'

This commit is contained in:
Campbell Barton 2014-12-18 13:52:31 +01:00
parent 9f61350a05
commit f0f1c7995b
2 changed files with 3 additions and 2 deletions

@ -38,10 +38,10 @@ __all__ = (
from _bpy import types, props, app, data, context from _bpy import types, props, app, data, context
# python modules # python modules
from . import utils, path, ops from . import utils, path
# fake operator module # fake operator module
ops = ops.ops_fake_module from .ops import ops_fake_module as ops
def main(): def main():

@ -36,6 +36,7 @@ class BPyOps:
bpy.ops bpy.ops
""" """
__slots__ = ()
def __getattr__(self, module): def __getattr__(self, module):
""" """