サマリー
Encrypts a Python toolbox file.
説明
A Python toolbox can also be encrypted by clicking on the toolbox within ArcMap.
構文
EncryptPYT (toolbox, password)
| パラメーター | 説明 | データ タイプ | 
toolbox  | The Python toolbox that will be encrypted in place.  | String | 
password  | The password used to lock the encrypted Python toolbox.  | String | 
コードのサンプル
EncryptPYT example
Encrypt a Python toolbox.
import arcpy
toolbox = 'd:/tools/analysis.pyt'
password = '<your password>'
arcpy.EncryptPYT(toolbox, password)