mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fixed launch crash
This commit is contained in:
parent
5c1a1a7690
commit
920492c475
1 changed files with 9 additions and 5 deletions
|
|
@ -929,7 +929,9 @@ class ApplicationLaunchContext:
|
|||
# --- START: Backwards compatibility ---
|
||||
hooks_dir = os.path.join(pype_dir, "hooks")
|
||||
|
||||
subfolder_names = ["global", self.host_name]
|
||||
subfolder_names = ["global"]
|
||||
if self.host_name:
|
||||
subfolder_names.append(self.host_name)
|
||||
for subfolder_name in subfolder_names:
|
||||
path = os.path.join(hooks_dir, subfolder_name)
|
||||
if (
|
||||
|
|
@ -940,10 +942,12 @@ class ApplicationLaunchContext:
|
|||
paths.append(path)
|
||||
# --- END: Backwards compatibility ---
|
||||
|
||||
subfolders_list = (
|
||||
["hooks"],
|
||||
("hosts", self.host_name, "hooks")
|
||||
)
|
||||
subfolders_list = [
|
||||
["hooks"]
|
||||
]
|
||||
if self.host_name:
|
||||
subfolders_list.append(["hosts", self.host_name, "hooks"])
|
||||
|
||||
for subfolders in subfolders_list:
|
||||
path = os.path.join(pype_dir, *subfolders)
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue