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 import *, to make PyCharm happy without breaking SCons' functionality.
1 comment
Comment actions Permalink
Please, vote for to increase its priority and be notified about updates.

Please sign in to leave a comment.