def execute(self, _context): try: config = pman.get_config(os.path.dirname(bpy.data.filepath) if bpy.data.filepath else None) pman.build(config) return {'FINISHED'} except pman.PManException as err: self.report({'ERROR'}, str(err)) return {'CANCELLED'}
def execute(self, _context): try: config = pman.get_config( os.path.dirname(bpy.data.filepath) if bpy.data. filepath else None) pman.build(config) return {'FINISHED'} except pman.PManException as err: self.report({'ERROR'}, str(err)) return {'CANCELLED'}
def build(_, config): pman.build(config)
def test_create_renderer(projectdir): conf = pman.get_config() conf['general']['renderer'] = 'none' pman.build() pman.create_renderer(None, conf)
def test_build(projectdir): pman.build()
def build(_): pman.build()
def test_build(projectdir): os.chdir(projectdir) pman.build()