laptop and a wrench

不具合

The getcwd() Python method returns the incorrect current working directory of a process when the project is launched from the Start menu.

最後に公開された状態: February 23, 2023 ArcGIS Pro
不具合 ID 番号 BUG-000154997
送信されましたJanuary 10, 2023
最終更新日October 7, 2024
適用対象ArcGIS Pro
見つかったバージョン3.0.3
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
ステータスAs Designed

参考情報

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.

再現の手順

不具合 ID: BUG-000154997

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動