Skip to content

Commit

Permalink
Don't modify sys.path if not a legacy addon
Browse files Browse the repository at this point in the history
  • Loading branch information
strike-digital committed Jul 14, 2024
1 parent aa20caa commit 596a53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonFiles/include/blender_vscode/load_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup_addon_links(addons_to_load: list[AddonInfo]):
if not os.path.exists(user_addon_directory):
os.makedirs(user_addon_directory)

if not str(user_addon_directory) in sys.path:
if is_addon_legacy(Path(addon_info.load_dir)) and not str(user_addon_directory) in sys.path:
sys.path.append(str(user_addon_directory))

if is_in_any_addon_directory(addon_info.load_dir):
Expand Down

0 comments on commit 596a53f

Please sign in to comment.