fawazar94 / DirectLink

GNU General Public License v2.0
3 stars 4 forks source link

Make the add-on's code as a package. #3

Closed CyrilleB79 closed 2 years ago

CyrilleB79 commented 2 years ago

Issue

Recently, the add-on's code was split into tow files, __init__.py and DirectLink.py. The goal was to load only the __init__.py file. But the two files are actually loaded. This is due to the fact that you have split in two files, but you have kept them at the same level, i.e. directly in the globalPlugins folder.

Solution

To have only the __init__.py file loaded, you need to create a package, i.e. a subfolder containing these two files. It is what is done in the PR.