摘要
DecryptPYT 函数可以对加密的 Python 工具箱文件进行解密。
说明
还可以通过单击 ArcGIS Pro 中的工具箱来解密已加密的 Python 工具箱。
语法
DecryptPYT (toolbox, password)
| 参数 | 说明 | 数据类型 |
toolbox | The encrypted Python toolbox that will be decrypted. | String |
password | The password used to unlock the encrypted Python toolbox. | String |
代码示例
对加密的 Python 工具箱进行解密。
import arcpy
toolbox = 'd:/tools/analysis.pyt'
password = '<your password>'
arcpy.DecryptPYT(toolbox, password)