ArcGIS python 获得工具箱所在路径
import arcpy
import os
import sys
#################################
#
scriptPath = sys.path[0]
arcpy.AddMessage("Script folder: " + scriptPath)
##########################################
#
toolSharePath = os.path.dirname(scriptPath)
arcpy.AddMessage("ToolShare folder: " + toolSharePath)
浙公网安备 33010602011771号