Commit Graph

2 Commits

Author SHA1 Message Date
Kyle McCormick
390d1b2d5c Fix linting as it relates to import_shims, and vice versa (#25632)
* Fix import_shims pylint violations; lint import_shims
* Do not shim imports when running pylint
* Regenerate import_shims
2020-11-24 09:36:15 -05:00
Kyle McCormick
090e10683c Rename sys_path_hacks/ to import_shims/
The old folder name is somewhat confusing, because the
folder contains shims to _compensate for the removal
of sys.path hacks_, but does not contain the sys.path
hacks themselves.

Furthermore, this import_shims/ system could also be
used for other import path changes, such as turning
the locally-installed packages in common/lib/
into regular, importable modules
(e.g. `from common.lib.xmodule import abc` instead of
`from xmodule import abc`). So, a name that is not
specific to the sys.path hacks may be better
in the medium-to-long term.

Along the same lines, we also rename SysPathHackWarning
to DeprecatedEdxPlatformImportWarning.
2020-10-30 10:20:48 -04:00