Update client/ayon_core/hooks/pre_remove_launcher_paths.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Ondřej Samohel 2025-04-30 19:02:55 +02:00 committed by GitHub
parent cd7c4a3778
commit 1f48b1568d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ class PreRemoveLauncherPaths(PreLaunchHook):
paths.extend( paths.extend(
path path
for path in self.launch_context.env.get("PATH").split(os.pathsep) for path in self.launch_context.env.get("PATH", "").split(os.pathsep)
if not os.path.normpath(path).startswith(ayon_root) if not os.path.normpath(path).startswith(ayon_root)
) )
self.launch_context.env["PATH"] = os.pathsep.join(paths) self.launch_context.env["PATH"] = os.pathsep.join(paths)