使用Komodo Edit将当前项目添加到python路径 [英] Add the current project to the python path with Komodo Edit
问题描述
我最近一直在使用komodo edit来阅读一些django教程,它为框架提供的代码完成水平给我留下了深刻的印象.
Ive been using komodo edit recently to go through a few django tutorials, and ive been impressed with the level of code completion it provides for the framework.
但是我真正想要做的是为当前项目提供代码完成,因此实际上我自己的视图,模型等将以与框架本身相同的方式工作.
However what i really want it to do is provide code completion for the current project, so in effect my own views, models etc. would work in the same way as the framework itself.
是否可以在每个项目的基础上临时修改python路径以获得我当前项目的代码完成?
Is there a way to temporarily modify the python path on a per project basis to get code completion of my current project?
注意:我不确定这是堆栈溢出还是超级用户问题,请随时纠正我.
NB: Im not sure whether this is a Stack Overflow or a Super User question, feel free to correct me.
推荐答案
您可以在Project [Menu] -> Properties -> Languages -> Python -> Additional Python Import Directories
中设置每个项目的Python路径.有关更多详细信息,请参见官方文档.
You can set per-project Python paths in Project [Menu] -> Properties -> Languages -> Python -> Additional Python Import Directories
. See the official documentation for more details.
这篇关于使用Komodo Edit将当前项目添加到python路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!