Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Package Third-Party Module with Python Addin

$
0
0
Does anyone know how I would go about packaging a third-party Python Site Package with an addin.

I want to package SendKeys with my addins so that I can implement a programmatic method of Pause Drawing (F9) and forcing the Continuous Zoom Tools, the little magnifying glass ones in ArcMap, to honor Reference Scales established in the MXD (CTRL).

I'm confused as to whether I should put the Site Package into the Data Folder in a subfolder named 'Site Packages' or if I should just drop the .py file into the Root Folder of the addin.

From there, I'm also not sure how to import the module into the script...

Any suggestions would be greatly appreciated!

Viewing all articles
Browse latest Browse all 2485

Trending Articles