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:
in its top most level. My library will contain more than just the default PythonAddIn_addin.py file.Code:<AddIn language="PYTHON" library="PythonAddIn_addin.py" namespace="PythonAddIn_addin">
Ideally, I would like to be able to:
to import my business logic function definition Analytics().Code:from Install.businesslogic import Analytics
Currently, this breaks my application, while keeping all the needed code within the PythonAddIn_addin.py 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 PythonAddIn_addin.py file... its getting huge.
Cheers,
Michael

Reply With Quote



Bookmarks