Docs: update AddonPreferences comment on __package__ use in extensions

Ref: !127661
This commit is contained in:
Spencer Magnusson
2024-09-16 20:15:13 +10:00
committed by Campbell Barton
parent 8af75d2fcc
commit 183112ad40

View File

@@ -18,8 +18,8 @@ from bpy.props import StringProperty, IntProperty, BoolProperty
class ExampleAddonPreferences(AddonPreferences):
# this must match the add-on name, use '__package__'
# when defining this in a submodule of a python package.
# This must match the add-on name, use `__package__`
# when defining this for add-on extensions or a sub-module of a python package.
bl_idname = __name__
filepath: StringProperty(