Ejemplo n.º 1
0
Archivo: run.py Proyecto: leon196/shiba
    def execute(self, context):
        with instrumentation.update_state() as state:
            state.library.loaded = True
            state.server.connected = True

        with instrumentation.server.get_server_connection(
        ) as server_connection:
            if server_connection:
                server_connection.send_run_command()

        return {'FINISHED'}
Ejemplo n.º 2
0
    def execute(self, context):
        settings = context.scene.shiba
        directory = path.realpath(settings.export_directory)
        output = settings.export_output

        with instrumentation.update_state() as state:
            state.library.loaded = True
            state.server.connected = True

        with instrumentation.server.get_server_connection(
        ) as server_connection:
            if server_connection:
                server_connection.send_build_command('executable')
                server_connection.send_export_command(directory, output,
                                                      'executable')

        return {'FINISHED'}
Ejemplo n.º 3
0
def _handle_library_built_event(obj):
    print("Library compiled at %s." % obj['path'])
    with instrumentation.update_state() as state:
        state.library.path = obj['path']
Ejemplo n.º 4
0
 def __init__(self):
     self.__first_time_update = True
     callback_lists.viewport_update.add(self.__update_viewport)
     with instrumentation.update_state() as state:
         state.library.loaded = True
         state.server.connected = True