Skip to content

Commit

Permalink
use 'AYON_BLENDER_USER_SCRIPTS' over 'OPENPYPE_BLENDER_USER_SCRIPTS'
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Feb 7, 2024
1 parent 5a21d04 commit daccaf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions client/ayon_core/hosts/blender/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def add_implementation_envs(self, env, _app):
# loops - will be removed at the end
previous_user_scripts.add(implementation_user_script_path)

openpype_blender_user_scripts = (
env.get("OPENPYPE_BLENDER_USER_SCRIPTS") or ""
ayon_blender_user_scripts = (
env.get("AYON_BLENDER_USER_SCRIPTS") or ""
)
for path in openpype_blender_user_scripts.split(os.pathsep):
for path in ayon_blender_user_scripts.split(os.pathsep):
if path:
previous_user_scripts.add(os.path.normpath(path))

Expand All @@ -53,7 +53,7 @@ def add_implementation_envs(self, env, _app):
env["BLENDER_USER_SCRIPTS"] = implementation_user_script_path

# Set custom user scripts env
env["OPENPYPE_BLENDER_USER_SCRIPTS"] = os.pathsep.join(
env["AYON_BLENDER_USER_SCRIPTS"] = os.pathsep.join(
previous_user_scripts
)

Expand Down
4 changes: 2 additions & 2 deletions client/ayon_core/hosts/blender/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def new_paths():


def append_user_scripts():
user_scripts = os.environ.get("OPENPYPE_BLENDER_USER_SCRIPTS")
user_scripts = os.environ.get("AYON_BLENDER_USER_SCRIPTS")
if not user_scripts:
return

Expand All @@ -142,7 +142,7 @@ def set_app_templates_path():
# We look among the scripts paths for one of the paths that contains
# the app templates. The path must contain the subfolder
# `startup/bl_app_templates_user`.
paths = os.environ.get("OPENPYPE_BLENDER_USER_SCRIPTS").split(os.pathsep)
paths = os.environ.get("AYON_BLENDER_USER_SCRIPTS").split(os.pathsep)

app_templates_path = None
for path in paths:
Expand Down

0 comments on commit daccaf8

Please sign in to comment.