Defining arcpy.mp.ArcGISProject('current') in the Python toolbox causes a syntax error and failure "Error 000229: Cannot open <path to pyt file>" when sharing the project as a project package.
上次发布: October 27, 2017ArcGIS Pro
漏洞 ID 编号
BUG-000108369
已提交
September 28, 2017
上次修改时间
August 11, 2025
适用范围
ArcGIS Pro
找到的版本
2.0.1
操作系统
Windows OS
操作系统版本
10.0 64 Bit
修正版本
2.3
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Define <a href="http://arcpy.mp" target="_blank">arcpy.mp</a>.ArcGISProject('current') after the tool is initialized (Tool def __init__).