Skip to content

Commit 5ceb036

Browse files
committed
Add comments
1 parent 3110ba6 commit 5ceb036

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

blender-addon/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@
3838
}
3939

4040

41-
def add_addon_libs_dir():
42-
"""
43-
Add the dependencies of the Mastodon Blender View plugin to the pythons system path.
44-
"""
41+
def _add_dependencies_to_sys_path():
42+
""" Add the dependencies of Mastodon Blender View addon to the pythons system path. """
4543
import sys
4644
import os
4745
addon_dir = os.path.dirname(__file__)
@@ -50,7 +48,7 @@ def add_addon_libs_dir():
5048
sys.path.insert(0, addon_libs_dir)
5149

5250

53-
add_addon_libs_dir()
51+
_add_dependencies_to_sys_path()
5452

5553
from . import mb_panel
5654
from . import mb_server

src/main/resources/csv/read_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import os
3030
import bpy
3131

32-
bpy.ops.preferences.addon_enable(module='mastodon_blender_view')
32+
bpy.ops.preferences.addon_enable(module='mastodon_blender_view') # "pandas" can only be imported after enabling the addon
3333

3434
import pandas as pd
3535
import csv

0 commit comments

Comments
 (0)