mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
paths to event handler are tried to format with environments
This commit is contained in:
parent
5ec147b336
commit
dd80f331f7
1 changed files with 10 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ class FtrackModule(
|
|||
settings_server_paths = settings_server_paths[low_platform]
|
||||
|
||||
for path in settings_server_paths:
|
||||
# Try to format path with environments
|
||||
try:
|
||||
path = path.format(**os.environ)
|
||||
except BaseException:
|
||||
pass
|
||||
server_event_handlers_paths.append(path)
|
||||
|
||||
user_event_handlers_paths = [
|
||||
|
|
@ -63,6 +68,11 @@ class FtrackModule(
|
|||
settings_action_paths = settings_action_paths[low_platform]
|
||||
|
||||
for path in settings_action_paths:
|
||||
# Try to format path with environments
|
||||
try:
|
||||
path = path.format(**os.environ)
|
||||
except BaseException:
|
||||
pass
|
||||
user_event_handlers_paths.append(path)
|
||||
|
||||
# Prepare attribute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue