Brushstroke Tools: Initial Version #328
@ -1,5 +1,5 @@
|
||||
from . import utils, icons, settings, ui, draw_tool, ops
|
||||
import toml
|
||||
import tomllib as toml
|
||||
import bpy
|
||||
|
||||
modules = [utils, icons, settings, ui, draw_tool, ops]
|
||||
@ -10,7 +10,8 @@ def register():
|
||||
m.register()
|
||||
SimonThommes marked this conversation as resolved
Outdated
|
||||
|
||||
# read addon meta-data
|
||||
manifest = toml.load(f"{utils.get_addon_directory()}/blender_manifest.toml")
|
||||
with open(f"{utils.get_addon_directory()}/blender_manifest.toml", 'rb') as f:
|
||||
manifest = toml.load(f)
|
||||
utils.addon_version = tuple([int(i) for i in manifest['version'].split('.')])
|
||||
|
||||
# Add addon asset library
|
||||
|
Loading…
Reference in New Issue
Block a user
Generally it's recommended to unregister in reverse registration order:
for m in reversed(modules):