mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
⚰️ remove unused code
This commit is contained in:
parent
f4b92f4d1d
commit
021800d1dd
2 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from openpype.lib import PreLaunchHook
|
||||
import os
|
||||
|
||||
|
||||
class SetOperatorsPath(PreLaunchHook):
|
||||
"""Set path to OpenPype assets folder."""
|
||||
|
||||
app_groups = ["houdini"]
|
||||
|
||||
def execute(self):
|
||||
hou_path = self.launch_context.env.get("HOUDINIPATH")
|
||||
|
||||
openpype_assets = os.path.join(
|
||||
os.getenv("OPENPYPE_REPOS_ROOT"),
|
||||
"openpype", "hosts", "houdini", "hda"
|
||||
)
|
||||
|
||||
if not hou_path:
|
||||
self.launch_context.env["HOUDINIPATH"] = openpype_assets
|
||||
return
|
||||
|
||||
self.launch_context.env["HOUDINIPATH"] = "{}{}{}".format(
|
||||
hou_path, os.pathsep, openpype_assets
|
||||
)
|
||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue