Skip to content

Commit

Permalink
Fix spelling and type checking for otl scan path
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximumFX authored Oct 31, 2023
1 parent ce4cfdc commit 3573ca1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hooks/tk-multi-launchapp/before_app_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ def execute(self, app_path, app_args, version, engine_name, **kwargs):
houdini_otls_template = tk.templates["houdini_otls"]
otls_path = houdini_otls_template.apply_fields(current_context).replace(os.sep, '/')

# Check if HOUDINI_OTLDSCAN_PATH exists in environment, if it's empty add the default value back
if os.environ.get("HOUDINI_OTLDSCAN_PATH") == "":
# Check if HOUDINI_OTLSCAN_PATH exists in environment, if it's empty add the default value back
HOUDINI_OTLSCAN_PATH = os.environ.get("HOUDINI_OTLSCAN_PATH")
if HOUDINI_OTLSCAN_PATH is None or HOUDINI_OTLSCAN_PATH == "":
sgtk.util.append_path_to_env_var("HOUDINI_OTLSCAN_PATH", "@/otls")

# Add the project otls path to the environment
Expand Down

0 comments on commit 3573ca1

Please sign in to comment.