我有一个 Python GAE 应用程序,它也使用 Google Compute Engine VM 实例。我正在尝试从 shell 运行一些第 3 方应用程序。当我启动 Google Cloud Shell 程序并键入pwd
时,路径显示:/home/<my_username>
但是当我subprocess.call()
从我的 python 代码调用时,日志显示:/home/vmagent/
所以我可以从命令行安装程序,/home/<my_username>
但我无法从我的 Python 应用程序中访问这些程序,因为我不知道在哪里/home/vmagent/
!
所以我想我的问题是 - 如何从我的 GAE 应用程序或我的一个 Compute Cloud VM 实例访问我在仪表板上看到的 Google Cloud Shell?