漏洞 ID 编号 |
BUG-000151539 |
已提交 | August 12, 2022 |
上次修改时间 | February 7, 2025 |
适用范围 | ArcGIS Pro |
找到的版本 | 3.0 |
操作系统 | N/A |
操作系统版本 | N/A |
状态 | Non-Reproducible
在开发团队测试过程中,此问题不可重现。 为问题分配此状态的可能原因包括:问题无法重现,或不再与软件的开发版本相关,但未安装特定修复程序来解决该问题。 问题的“其他信息”部分可能包含进一步说明。
|
附加信息
This issue is non-reproducible. Use the following modified script to join the newly changed directory so the LYRX can be found correctly:
import os
import arcpy
print(f'Currently in {os.getcwd()}\n')
fldr_scratch = os.path.join(os.getcwd(), 'fldr_scratch')
os.chdir(fldr_scratch)
print(f'Now in {os.getcwd()}\n')
layer = arcpy.mp.LayerFile(os.path.join(fldr_scratch, 'Boundary.lyrx'))
print(layer.filePath)
解决办法
Use the full path to the layer file (.lyrx) as a string or by using the os.path.join() function.
重现步骤