Brushstroke Tools: Initial Version #328
@ -1,5 +1,5 @@
|
|||||||
from . import utils, icons, settings, ui, draw_tool, ops
|
from . import utils, icons, settings, ui, draw_tool, ops
|
||||||
import toml
|
import tomllib as toml
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
modules = [utils, icons, settings, ui, draw_tool, ops]
|
modules = [utils, icons, settings, ui, draw_tool, ops]
|
||||||
@ -10,7 +10,8 @@ def register():
|
|||||||
m.register()
|
m.register()
|
||||||
|
|
||||||
# read addon meta-data
|
# 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('.')])
|
utils.addon_version = tuple([int(i) for i in manifest['version'].split('.')])
|
||||||
|
|
||||||
# Add addon asset library
|
# Add addon asset library
|
||||||
|
Loading…
Reference in New Issue
Block a user