本文介绍了在Mac上为PyDev配置App Engine路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我刚刚在我的Mac上安装了Eclipse和Pydev插件(OS X 10.6.6),而且我无法使用Google App Engine项目的模板。我真的被困在这里,所以你的帮助将非常受赞赏。



我可以获得添加新项目> Pydev> Pydev Google App Engine项目,并设置项目名称,目录和类型等没有问题。



然后它要求Google App Engine目录选择Google App Engine根目录(dir包含dev_appserver.py,appcfg .py,lib etc但是我找不到这些文件,我当然已经安装了Google App Engine SDK。



我找到了一个帖子我应该指定以下路径:

 / Applications / ** GoogleAppEngineLauncher.app ** / Contents / Resources / 
GoogleAppEngine-default.bundle / Contents / Resources / google_appengine /

注意此路径包括.app文件(!?),我试图浏览这个结构,我可以找到GoogleAppEngineLauncher.app文件,但无法浏览它,我甚至试图将路径粘贴到对话框直接y ...没有运气。



我做错了什么?帮助!



Yours,Confoosed。

解决方案

/ usr / local / google_appengine 作为$ {GOOGLE_APP_ENGINE}的路径,Eclipse会将该符号链接解析为 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle / Contents / Resources / google_appengine



你应该可以看到Eclipse下的/ usr文件夹,在Finder下面。


I've just installed Eclipse and the Pydev plug-in on my Mac (OS X 10.6.6) and I'm having trouble using the Google App Engine project 'template'. I'm really stuck here so your help would be really appreciated.

I can get as far as adding a New Project > Pydev > Pydev Google App Engine Project and setup the project name, directory and type etc no problem.

It then asks for the Google App Engine directory "Select the Google App Engine root directory (dir containing dev_appserver.py, appcfg.py, lib etc" but I can't find these files anywhere. I have of course already installed the Google App Engine SDK.

I did find a post that says I should specify the following path:

"/Applications/**GoogleAppEngineLauncher.app**/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/"

Notice this path includes a .app file (!?). I tried to navigate this structure and I can find the GoogleAppEngineLauncher.app file but can't navigate into it. I even tried pasting the path into the dialog directly... no luck.

What am I doing wrong? Help!

Yours, Confoosed.

解决方案

Put /usr/local/google_appengine as the path to ${GOOGLE_APP_ENGINE} and Eclipse will resolve that symlink to /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine.

You should be able to see the /usr folder under Eclipse, which you normally won't see under Finder.

这篇关于在Mac上为PyDev配置App Engine路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 16:26