When using a combination of arcpy.CalculateField_management, Python parsers, and sys.argv[0] within a For loop, error 000732 is produced on the second iteration of the loop because sys.argv[0] is no longer called properly.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM079109
已提交
March 16, 2012
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
操作系统
Windows OS
操作系统版本
7
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Instead of sys.argv[0] use os.getcwd() instead as it is more reliable.
解决办法
Make sys.argv[0] a variable outside of the For loop.