I'm working on a standalone script where I need to import arcpy
. This usually takes close to 10 seconds, which is a little more than ideal. I'm only using a few Data Management tools and some base methods, so I was thinking it might be faster to only load the modules I'm using. I can see all the .py files in C:\Program Files\ArcGIS\Desktop10.1\arcpy\arcpy
, but I'm not sure which ones to load. These are the methods I'm using:
- Exists
- Delete_management
- CreateTable_management
- AddField_management
- InsertCursor
- CreateRelationshipClass_management
Any help will be much appreciated!