Numéro d’ID de bogue |
BUG-000154997 |
Envoi | January 10, 2023 |
Dernière modification | October 7, 2024 |
S’applique à | ArcGIS Pro |
Version trouvée | 3.0.3 |
Système d’exploitation | N/A |
Version du système d’exploitation | N/A |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
When an application is launched either from the start menu or from the cmd.exe session, there is a well-established 'current directory' behavior. Python simply returns whatever the application's current directory is with os.getcwd().
iPython notebooks do not provide a way to determine the current running .ipynb, refer to the discussion at https://github.com/ipython/ipython/issues/10123
If the intent is to query the current ArcGIS Pro in which the Python code is running, use the 'arcpy.mp.ArcGISProject("CURRENT").homeFolde' command.
Étapes pour reproduire
ID de bogue: BUG-000154997
Logiciel: