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 comment
Sort by
Date
Votes
Please, vote for https://youtrack.jetbrains.com/issue/PY-10591 to increase its priority and be notified about updates.
Please sign in to leave a comment.