Suggestions for fixing inspections for SCons' SConstruct and SConscript files
The SCons build system uses files that are actually Python files. However, because SCons 'execfile's the files (or something similar) inside an environment with additional global functions (e.g. 'Environment'), PyCharm's inspections flag this as an error, and a bunch of other useful inspections, such as method completion on the 'env' object, become unavailable.
Has anyone any suggestions on how to address this? I'm thinking of some way of adding imports at the top of the file, something like from scons.foo import *, to make PyCharm happy without breaking SCons' functionality.
Has anyone any suggestions on how to address this? I'm thinking of some way of adding imports at the top of the file, something like from scons.foo import *, to make PyCharm happy without breaking SCons' functionality.
1 条评论
排序方式
日期
投票数
Please, vote for https://youtrack.jetbrains.com/issue/PY-10591 to increase its priority and be notified about updates.
请先登录再写评论。