Numéro d’ID de bogue |
BUG-000151539 |
Envoi | August 12, 2022 |
Dernière modification | February 7, 2025 |
S’applique à | ArcGIS Pro |
Version trouvée | 3.0 |
Système d’exploitation | N/A |
Version du système d’exploitation | N/A |
Statut | Non-Reproducible
Ce problème n’a pas pu être reproduit au cours des tests réalisés par l’équipe de développement. Ce statut peut être attribué aux problèmes qui sont impossibles à reproduire ou qui ne sont plus d’actualité dans une version de développement du logiciel, alors qu’aucun correctif spécifique n’a été installé pour résoudre le problème. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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)
Solution de contournement
Use the full path to the layer file (.lyrx) as a string or by using the os.path.join() function.
Étapes pour reproduire