initial (2017) commit

This commit is contained in:
2017-06-22 01:43:08 -07:00
parent 9e2b2c1794
commit 15a59cb867
4 changed files with 85 additions and 0 deletions

21
pkg_ops.py Normal file
View File

@@ -0,0 +1,21 @@
import bpy
from multiprocessing import Process
from . import blenderpack
class PACKAGE_OT_fetch_lists(bpy.types.Operator):
bl_idname = "package.fetch_lists"
bl_label = "Update package list(s)"
def execute(self, context):
settings = context.window_manager.PackageManagerSettings
proc = Process(target=lambda: blenderpack.fetch(settings.url))
proc.start()
return {'FINISHED'}
def register():
bpy.utils.register_class(PACKAGE_OT_fetch_lists)
def unregister():
bpy.utils.unregister_class(PACKAGE_OT_fetch_lists)