⚰️ remove unused code

This commit is contained in:
Ondrej Samohel 2022-10-21 17:52:00 +02:00
parent f4b92f4d1d
commit 021800d1dd
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 0 additions and 25 deletions

View file

@ -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
)