AnsweredAssumed Answered

Python AddIn: How can I package/deploy a custom lib with my python addin?

Question asked by rastrauch Champion on May 8, 2013
I have a couple custom .py modules that live in my C:\Python27\ArcGIS10.1\Lib directory.  I "import" these into all my tools (mainly custom utils that I use alot).  I've created a python addin.esriaddin, using the wizard and customized it to use the tools from my custom toolbox. 

For the addin creation, I've copied the .py file from these modules into the \addin\Install folder, so they do get included with my addin package, but on install to a new machine, they do not get deployed to the \Lib directory.

Is there a way to do this that I am missing?  Or should I call the in my script tools using relative paths to the \addin\Install folder.  I'm just not sure how this would be referenced when installed on a different computer.

Has anyone done this or have any suggestions?

Thanks

---------
UGH...never mind.  I just moved them to the folder with my other scripts (i.e. addin\Install\scripts in my case).  Since my tool scripts do not specify a folder, it appears it first looks in the current folder of the calling script, before or if it doesn't find it in the \lib folder.  In any case it worked for this addin. 

I should have checked that before posting...but if this helps someone else....

Outcomes