EsriOceans / btm

Benthic Terrain Modeler
http://resources.arcgis.com/en/communities/oceans/
Mozilla Public License 2.0
26 stars 7 forks source link

Pathing inside btm.pyt doesn't match parent scripts environment #86

Closed scw closed 9 years ago

scw commented 9 years ago

Despite changing the path with additions to sys.path, any class within the btm.pyt file don't retain these changes -- apparently the underlying calling environment only knows how to see static imports and not our dynamic importing mechanism, and can be confused then if other items collide on the path, which is not uncommon for things like utils.

To fix this, force our scripts directory into the path in each function -- a hack, but will work for the time being till we can file an issue on the ArcPy side.