Addon self contained folder?

Hello Everyone!
I would ilke to ask anyone how to find the following:

  • Import all modules from certain scripts in the folder (from x import *)
  • Get the current path of the folder

For the former, I need to use a “from script import *” statement.
I saw something like from . import * but it didn’t seem to work.

Secondly, how does one get the path to the current file (as these are both in init.py, it returns the add ons folder path, excluding the add on folder itself)
Thanks :slight_smile: Angus

If you use a directory in addons
e.g. geodesic_domes
containing an init.py
I did it like this (third_domes_pane.py lives in */geodesic_domes/


from geodesic_domes import vefm_259 
from geodesic_domes import forms_259
from geodesic_domes import geodesic_classes_259
from geodesic_domes import add_shape_geodesic

Why like this? * imports are depecated!