Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
8c42aaa
remove framework-widget
lluisCM Feb 7, 2024
d6233a9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
d4f8153
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
5a9acf3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
2a04cd7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
6fc405f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
90ab95e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
3849d82
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
599b789
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
3f25798
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
95a0677
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
19f54de
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
398bd41
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
f760b3e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
f4b9e97
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
b1d7554
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
e132d07
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
5477ad1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 13, 2024
4b1a74f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 14, 2024
b84d398
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 16, 2024
cbd2c2c
update date on publisher widget and timetracker widget
lluisCM Feb 16, 2024
1f48ab1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 16, 2024
e3132db
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 20, 2024
bc67e17
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 21, 2024
391cde7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 23, 2024
8e19633
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
acbfd19
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
1a6ea94
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
6a86252
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 27, 2024
1122fea
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
08ba490
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
4a7e8e1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
88ec7a4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
b06af7f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
fc7a97a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
51910e9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
8b89581
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
d585549
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 12, 2024
64f2fae
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 13, 2024
cab8fc8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
31af13f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
3e3b94c
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
cc5bc48
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
ce76c12
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
4971d86
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
e43a837
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
7880e5a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 20, 2024
f2126cd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 21, 2024
2ea0840
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 22, 2024
800cf67
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
2ccdea9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
161a28f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
3b45d10
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
1c6dc9e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
d86b8eb
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
716cefd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
dad7f7f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
a193ae6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
b11e6fc
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
53c6978
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
0da980d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
9fcf879
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
9d1c194
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
828ec82
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
9ba34ac
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
8fdca98
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 15, 2024
bcd4524
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 15, 2024
aedffe6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 17, 2024
629803e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 18, 2024
9f7edb7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 19, 2024
1c0abd9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 19, 2024
7913ca8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 22, 2024
f1cd994
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 22, 2024
c4694bd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 24, 2024
0111334
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
f12b4a0
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
a98cf5d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
d6b48aa
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
a693cad
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 3, 2024
2d5365d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 3, 2024
f551eb7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 7, 2024
e19fabe
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 7, 2024
dd0bc2e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 8, 2024
22eaa3c
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
9e7fdf3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
96fc21a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
3779b60
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 14, 2024
f8a85c4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 14, 2024
fb5d9a6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 15, 2024
c0c3339
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
e5be1a4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
99df474
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
cf77283
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 27, 2024
ea4b2b8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 28, 2024
29a64b3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 31, 2024
a534ff0
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 4, 2024
e56972a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 4, 2024
6f4d2e7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 4, 2024
4101fc1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 26, 2024
a3f5354
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 26, 2024
787a383
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jun 26, 2024
f13a81f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 5, 2024
88fc8d4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 11, 2024
4d1e6df
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 11, 2024
90a6824
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 11, 2024
5de9376
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 11, 2024
9162a5a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 11, 2024
95db3fc
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 12, 2024
8788d36
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 12, 2024
905d5ba
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 12, 2024
26c3ae0
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 12, 2024
9875787
session and event manager allowing local and remote events
lluisCM Jul 15, 2024
b9effc1
fix codestyling
lluisCM Jul 15, 2024
0fa549e
add release notes to all the projects
lluisCM Jul 15, 2024
da8d618
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 17, 2024
d9ffbdd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 17, 2024
fc7713d
Merge branch 'main' of github.com:ftrackhq/integrations into backlog/…
lluisCM Jul 18, 2024
9c16498
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 18, 2024
69fb7c2
Merge branch 'main' of github.com:ftrackhq/integrations into backlog/…
lluisCM Jul 18, 2024
303409f
add close function to disconnect event hub
lluisCM Jul 18, 2024
417db4f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 22, 2024
315da84
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 23, 2024
c4f66cb
align with main
lluisCM Jul 23, 2024
42f1e19
put back mode on event manager and remove remote argument
lluisCM Jul 23, 2024
c756a93
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Jul 24, 2024
3ba3f90
changed core utils and all projects and release notes
lluisCM Jul 24, 2024
c77a459
add missing functions in the init
lluisCM Jul 24, 2024
8fc942d
align with backlog/create_api_session_util
lluisCM Jul 24, 2024
b157254
align with main
lluisCM Jul 25, 2024
716d1a4
update harmony session
lluisCM Jul 25, 2024
5db13d8
feat: Backlog/remove duplicated session (#562)
lluisCM Jul 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libs/framework-core/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## upcoming

* [changed] Host; Remove with_new_session decorator and use current remote session directly.
* [changed] EventManager; Remove the ability to connect to the event hub, instead assume that passed session argument is already connected.
* [changed] EventManager; EventHubThread moved to ftrack_utils.
* [new] Client, Host; Using delegate_to_main_thread_wrapper decorator to execute methods in main thread function provided as run_in_main_thread_wrapper argument when instantiating.
Expand All @@ -10,6 +11,7 @@
## v3.0.0rc1
2024-07-17

* [change] EventManager; Remove override mode.
* [feature] Client, Engine, Dialog; Support tool config top level options.
* [fix] Engine; Check enabled/disabled plugins.
* [change] Client, Dialog; Support set_tool_config_option for any item in the tool_conifg.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def subscribe(self):
'''
return self._subscribe_instance

def close(self):
'''Close the event manager and disconnect from the event hub.'''
self.session.event_hub.disconnect()
self.session.close()

def __init__(self, session, mode=constants.event.LOCAL_EVENT_MODE):
self.logger = logging.getLogger(
__name__ + '.' + self.__class__.__name__
Expand All @@ -81,20 +86,19 @@ def __init__(self, session, mode=constants.event.LOCAL_EVENT_MODE):
self._publish_instance = Publish(self)
self._subscribe_instance = Subscribe(self)

def _publish(self, event, callback=None, mode=None):
'''Emit *event* and provide *callback* function, in local or remote *mode*.'''
self.logger.debug(
f'Initialising event manager {self} with mode {self.mode}'
)

mode = mode or self.mode
def _publish(self, event, callback=None):
'''Emit *event* and provide *callback* function, in local or remote *remote*.'''

if mode is constants.event.LOCAL_EVENT_MODE:
if self.mode == constants.event.LOCAL_EVENT_MODE:
result = self.session.event_hub.publish(
event,
synchronous=True,
)

if result:
result = result

# Mock async event reply.
new_event = ftrack_api.event.base.Event(
topic='ftrack.meta.reply',
Expand Down Expand Up @@ -124,9 +128,6 @@ def unsubscribe(self, subscribe_id):
release dangling callback reference in memory'''
self.session.event_hub.unsubscribe(subscribe_id)

def available_framework_events(self):
pass


class Publish(object):
'''Class with all the events published by the framework'''
Expand All @@ -139,7 +140,7 @@ def __init__(self, event_manager):
super(Publish, self).__init__()
self._event_manager = event_manager

def _publish_event(self, event_topic, data, callback, mode=None):
def _publish_event(self, event_topic, data, callback):
'''
Common method that calls the private publish method from the
event manager
Expand All @@ -148,7 +149,7 @@ def _publish_event(self, event_topic, data, callback, mode=None):
topic=event_topic, data=data
)
publish_result = self.event_manager._publish(
publish_event, callback=callback, mode=mode
publish_event, callback=callback
)
return publish_result

Expand All @@ -157,7 +158,7 @@ def discover_host(self, callback=None):
Publish an event with topic
:const:`~ftrack_framework_core.constants.event.DISCOVER_HOST_TOPIC`
'''

# TODO: review this implementation, for now this one can't never be remote as it goes into a loop.
data = None
event_topic = constants.event.DISCOVER_HOST_TOPIC
return self._publish_event(event_topic, data, callback)
Expand Down Expand Up @@ -306,13 +307,7 @@ def client_notify_ui_hook_result(
event_topic = constants.event.CLIENT_NOTIFY_UI_HOOK_RESULT_TOPIC
return self._publish_event(event_topic, data, callback)

def host_verify_plugins(
self,
host_id,
plugin_names,
callback=None,
mode=constants.event.LOCAL_EVENT_MODE,
):
def host_verify_plugins(self, host_id, plugin_names, callback=None):
'''
Publish an event with topic
:const:`~ftrack_framework_core.constants.event.HOST_VERIFY_PLUGINS_TOPIC`
Expand All @@ -323,7 +318,7 @@ def host_verify_plugins(
}

event_topic = constants.event.HOST_VERIFY_PLUGINS_TOPIC
return self._publish_event(event_topic, data, callback, mode)
return self._publish_event(event_topic, data, callback)


class Subscribe(object):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ def _client_context_change_callback(self, event):

# Run
@delegate_to_main_thread_wrapper
@with_new_session
def run_tool_config_callback(self, event, session=None):
def run_tool_config_callback(self, event):
'''
Runs the data with the defined engine type of the given *event*

Expand Down Expand Up @@ -266,7 +265,7 @@ def run_tool_config_callback(self, event, session=None):
)
engine_instance = engine_registry['extension'](
self.registry,
session,
self.session,
self.context_id,
on_plugin_executed=self.on_plugin_executed_callback,
)
Expand Down Expand Up @@ -296,8 +295,7 @@ def on_plugin_executed_callback(self, plugin_info):
self.event_manager.publish.host_log_item_added(self.id, log_item)

@delegate_to_main_thread_wrapper
@with_new_session
def run_ui_hook_callback(self, event, session=None):
def run_ui_hook_callback(self, event):
'''
Runs the data with the defined engine type of the given *event*

Expand Down Expand Up @@ -336,7 +334,7 @@ def run_ui_hook_callback(self, event, session=None):
)
engine_instance = engine_registry['extension'](
self.registry,
session,
self.session,
on_plugin_executed=partial(
self.on_ui_hook_executed_callback, plugin_reference
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
)

from ftrack_utils.usage import set_usage_tracker, UsageTracker
from ftrack_utils.session import create_api_session

from ftrack_framework_harmony.utils import TCPRPCClient

Expand Down Expand Up @@ -97,7 +98,7 @@ def bootstrap_integration(framework_extensions_path):
f' {framework_extensions_path}'
)
# Create ftrack session and instantiate event manager
session = ftrack_api.Session(auto_connect_event_hub=False)
session = create_api_session(auto_connect_event_hub=True)
event_manager = EventManager(
session=session, mode=constants.event.LOCAL_EVENT_MODE
)
Expand Down
1 change: 1 addition & 0 deletions projects/framework-photoshop/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

## upcoming

* [changed] Init; Remove remote session and use only one session instead.
* [changed] Init; Use create_api_session utility to create the api session.
* [changed] Host, Client instance; Pass run_in_main_thread argument.
* [fix] Init; Fix on_run_tool_callback options argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
client_instance = None
photoshop_rpc_connection = None
startup_tools = []
remote_session = None
session = None
process_monitor = None

# Create Qt application
Expand Down Expand Up @@ -140,7 +140,7 @@ def bootstrap_integration(framework_extensions_path):
'''Initialise Photoshop Framework Python standalone part,
with extensions defined @ *framework_extensions_path*'''

global client_instance, photoshop_rpc_connection, startup_tools, remote_session, process_monitor
global client_instance, photoshop_rpc_connection, startup_tools, session, process_monitor

logger.debug(
'Photoshop standalone integration initialising, extensions path:'
Expand Down Expand Up @@ -175,9 +175,6 @@ def bootstrap_integration(framework_extensions_path):

logger.debug(f'Read DCC config: {dcc_config}')

# Init Photoshop connection
remote_session = ftrack_api.Session(auto_connect_event_hub=True)

# Filter tools, extract the ones that are marked as startup tools
panel_launchers = []
for tool in dcc_config['tools']:
Expand Down Expand Up @@ -207,7 +204,7 @@ def bootstrap_integration(framework_extensions_path):
)
photoshop_rpc_connection = JavascriptRPC(
'photoshop',
remote_session,
session,
client_instance,
panel_launchers,
on_connected_callback,
Expand Down Expand Up @@ -290,13 +287,13 @@ def bootstrap_integration(framework_extensions_path):
def run_integration():
'''Run Framework Python standalone as long as Photoshop is alive.'''

global remote_session
global session

# Run until it's closed, or CTRL+C
active_time = 0
while True:
app.processEvents()
remote_session.event_hub.wait(0.01)
session.event_hub.wait(0.01)
active_time += 10
if active_time % 10000 == 0:
logger.info(
Expand Down
1 change: 1 addition & 0 deletions projects/framework-premiere/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

## upcoming

* [changed] Init; Remove remote session and use only one session instead.
* [changed] Init; Use create_api_session utility to create the api session.
* [changed] Host, Client instance; Pass run_in_main_thread argument.
* [fix] Init; Fix on_run_tool_callback options argument.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
client_instance = None
premiere_rpc_connection = None
startup_tools = []
remote_session = None
session = None
process_monitor = None

# Create Qt application
Expand Down Expand Up @@ -146,7 +146,7 @@ def bootstrap_integration(framework_extensions_path):
'''Initialise Premiere Framework Python standalone part,
with panels defined in *panel_launchers*'''

global client_instance, premiere_rpc_connection, startup_tools, remote_session, process_monitor
global client_instance, premiere_rpc_connection, startup_tools, session, process_monitor

logger.debug(
'Premiere standalone integration initialising, extensions path:'
Expand Down Expand Up @@ -181,9 +181,6 @@ def bootstrap_integration(framework_extensions_path):

logger.debug(f'Read DCC config: {dcc_config}')

# Init Premiere connection
remote_session = ftrack_api.Session(auto_connect_event_hub=True)

# Filter tools, extract the ones that are marked as startup tools
panel_launchers = []
for tool in dcc_config['tools']:
Expand Down Expand Up @@ -213,7 +210,7 @@ def bootstrap_integration(framework_extensions_path):
)
premiere_rpc_connection = JavascriptRPC(
'premiere',
remote_session,
session,
client_instance,
panel_launchers,
on_connected_callback,
Expand Down Expand Up @@ -296,13 +293,13 @@ def bootstrap_integration(framework_extensions_path):
def run_integration():
'''Run Premiere Framework Python standalone part as long as Premiere is alive.'''

global remote_session
global session

# Run until it's closed, or CTRL+C
active_time = 0
while True:
app.processEvents()
remote_session.event_hub.wait(0.01)
session.event_hub.wait(0.01)
active_time += 10
if active_time % 10000 == 0:
logger.info(
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/manual/standalone_ui_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
WHAT = 'publisher'
client_class.run_dialog(
dialog_name=f'framework_standard_{WHAT}_dialog',
dialog_options={'tool_config_names': [f'standalone-file-{WHAT}']},
dialog_options={'tool_configs': [f'standalone-file-{WHAT}']},
)

sys.exit(app.exec_())