File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
5553from . import mb_panel
5654from . import mb_server
Original file line number Diff line number Diff line change 2929import os
3030import 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
3434import pandas as pd
3535import csv
You can’t perform that action at this time.
0 commit comments