Bug-ID-Nummer |
BUG-000151539 |
Eingereicht | August 12, 2022 |
Zuletzt geändert | February 7, 2025 |
Gilt für | ArcGIS Pro |
Gefunden in Version | 3.0 |
Betriebssystem | N/A |
Betriebssystemversion | N/A |
Status | Non-Reproducible
Dieses Problem konnte bei Tests durch das Entwicklungsteam nicht reproduziert werden. Problemen wird u. U. dieser Status zugewiesen, wenn sie nicht reproduziert werden können oder in einer Entwicklungsversion der Software nicht mehr relevant sind. Es wurde jedoch kein Fix zur Problembehebung installiert. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
Zusätzliche Informationen
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)
Workaround
Use the full path to the layer file (.lyrx) as a string or by using the os.path.join() function.
Schritte zur Reproduzierung