开发者

pydev eclipse configuration for __builtins__?

开发者 https://www.devze.com 2023-01-09 02:55 出处:网络
suppose on init I\'ve install my function under开发者_开发百科 builtins then throughout my project I can access it directly that function, no need to import, but how can I tell this to eclipse - so it

suppose on init I've install my function under开发者_开发百科 builtins then throughout my project I can access it directly that function, no need to import, but how can I tell this to eclipse - so it should not show RED Error "undefined variable"

__builtins__['_'] = gettext.gettext


Look in Preferences -> PyDev -> Editor -> Code Analysis. There's a bunch of options for adjusting code analysis in there.

On my PyDev, _ is already in the Consider the following names as globals list though - which version of PyDev do you have?

0

精彩评论

暂无评论...
验证码 换一张
取 消