端点cfg.py在Mac上的位置

时间:2014-07-05 18:13:38

标签: python google-cloud-endpoints

我刚刚使用Python(使用最新的Mac OS)编写了Google Cloud Endpoints API,现在需要通过以下方式创建Android客户端: https://developers.google.com/appengine/docs/python/endpoints/endpoints_tool

在说明中,它说google_appengine下有一个名为endpointscfg.py的文件,但我无法找到它们。

当我下载GAE SDK for Mac时,我只得到一个包含GoogleAppEngineLauncher.app的DMG。我把它放在我的Applications文件夹下。

以下是GoogleAppEnglineLauncher.app的内容,显然没有* .py文件。

my-macbook-pro:GoogleAppEngineLauncher.app user1$ ls -al
total 0
drwxr-xr-x@   3 user1  admin   102 May 30 10:16 .
drwxrwxr-x+ 124 root    admin  4216 Jul  5 10:50 ..
drwxr-xr-x@   8 user1  admin   272 May 30 10:16 Contents
my-macbook-pro:GoogleAppEngineLauncher.app user1$ 

我在哪里可以找到endpointscfg.py?感谢。

杰拉德

2 个答案:

答案 0 :(得分:0)

呃,它在google_appengine。您没有查看google_appengine,而是在查看GoogleAppEngineLauncher.app。

正如Mac SDK的documentation所说,当您第一次运行启动器时,系统应该提示您让它在/usr/lib/google_appengine中安装实际代码,这就是您所在的位置找到你需要的一切。

答案 1 :(得分:0)

它位于usr / local / bin

要确定Mac上的路径,请按以下步骤操作:

  1. 启动Google App Engine Launcher
  2. 转到GoogleAppEngineLauncher菜单>制作符号链接
  3. 寻找“被制造”,然后是[路径]
  4. [path]是endpointscfg.py所在的位置