Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
add addons dir only if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 16, 2024
1 parent 4c9b19e commit b29dee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpype/modules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ def _load_modules():
module_dirs.insert(0, current_dir)

addons_dir = os.path.join(os.path.dirname(current_dir), "addons")
module_dirs.append(addons_dir)
if os.path.exists(addons_dir):
module_dirs.append(addons_dir)

ignored_host_names = set(IGNORED_HOSTS_IN_AYON)
ignored_current_dir_filenames = set(IGNORED_DEFAULT_FILENAMES)
Expand Down

0 comments on commit b29dee5

Please sign in to comment.