Separating business logic and add-in script [Python Add-In]

Discussion created by markieta on Jun 19, 2012
Latest reply on Jun 19, 2012 by markieta
Hi all,

I was hoping someone could fill me in on how I can properly seperate my python addins' business logic and the main add-in script.

The config.xml file lists:
<AddIn language="PYTHON" library="" namespace="PythonAddIn_addin">

in its top most level. My library will contain more than just the default file.

Ideally, I would like to be able to:
from Install.businesslogic import Analytics

to import my business logic function definition Analytics().

Currently, this breaks my application, while keeping all the needed code within the file works.
The moment I try to import code from a relative path (within the Install folder), the add-in breaks.

Ideas? I couldn't live with all my business logic sitting inside the file... its getting huge.