On 15/11/2017 at 08:07, xxxxxxxx wrote:
Hi guys,
I'm trying to import modules dynamically inside sub-folders of the plugin and can't seem to make it work. My current hierarchy looks as follow:
/plugin
|_plugin.pyp
|_modules
| |_folder_A
| | |
| | |_file_A.py
| |
| |_folder_B
| | |
| | |_file_B.py
| |
| |_folder_C
| |
| |_file_C.py
|
|_res
|_icons
|_icon.tif
|_c4d_symbols.h
Would like to be able to access the file_A, file_B and file_C. Do you have to include an empty __init__ file inside each folder?
Apologies if this has been replied before. Just can't seem to find an answer.
Thank you very much in advance!
Andre