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.