Update and optimize template
This commit is contained in:
@@ -18,7 +18,7 @@ def b3d_launch_blender_test(client: docker = docker.from_env(), test: list = Non
|
||||
local_path = os.environ.get('GITHUB_WORKSPACE')
|
||||
else:
|
||||
local_path = os.getcwd()
|
||||
container_folder = '/addon-moderlab'
|
||||
container_folder = '/addon_moderlab'
|
||||
volume = [f'{local_path}:{container_folder}']
|
||||
image_name = tag
|
||||
if test is None:
|
||||
|
||||
@@ -5,16 +5,17 @@ import bpy
|
||||
dependency = {
|
||||
# 'moderlab_plugin': ['moderlab_plugin.zip', 'Moderlab-Production/BlenderPlugin'],
|
||||
'moderlab_type': ['moderlab_type.zip', 'Moderlab-Production/BlenderObjectType'],
|
||||
# 'moderlab_pie': ['moderlab_pie.zip', 'Moderlab-Production/BlenderPieMenu'],
|
||||
# 'uv-packer': ['uv-packer.zip', 'Moderlab-Production/UvPacker'],
|
||||
}
|
||||
|
||||
|
||||
def b3d_install_addon(addon_path: str):
|
||||
def b3d_install_addon():
|
||||
for key, value in dependency.items():
|
||||
bpy.ops.preferences.addon_install(filepath=f'{addon_path}/{value[0]}')
|
||||
bpy.ops.preferences.addon_install(filepath=f'/addon_moderlab/{value[0]}')
|
||||
bpy.ops.preferences.addon_enable(module=key)
|
||||
bpy.ops.wm.save_userpref()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
b3d_install_addon(sys.argv[-1])
|
||||
b3d_install_addon()
|
||||
|
||||
Reference in New Issue
Block a user