mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
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:
parent
cd7c4a3778
commit
1f48b1568d
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class PreRemoveLauncherPaths(PreLaunchHook):
|
|||
|
||||
paths.extend(
|
||||
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)
|
||||
)
|
||||
self.launch_context.env["PATH"] = os.pathsep.join(paths)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue