mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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
1f48b1568d
commit
edabad6c13
1 changed files with 1 additions and 5 deletions
|
|
@ -22,11 +22,7 @@ class PreRemoveLauncherPaths(PreLaunchHook):
|
|||
def execute(self):
|
||||
# Remove launcher paths from the system
|
||||
paths = []
|
||||
try:
|
||||
ayon_root = os.path.normpath(self.launch_context.env["AYON_ROOT"])
|
||||
except KeyError:
|
||||
self.log.warning("AYON_ROOT not found in environment variables.")
|
||||
return
|
||||
ayon_root = os.path.normpath(os.environ["AYON_ROOT"])
|
||||
|
||||
paths.extend(
|
||||
path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue