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.
Showing
- cms/envs/common.py 1 addition, 1 deletioncms/envs/common.py
- docs/decisions/0007-sys-path-modification-removal.rst 3 additions, 3 deletionsdocs/decisions/0007-sys-path-modification-removal.rst
- import_shims/README.rst 0 additions, 0 deletionsimport_shims/README.rst
- import_shims/generate_shims.sh 57 additions, 0 deletionsimport_shims/generate_shims.sh
- import_shims/warn.py 45 additions, 0 deletionsimport_shims/warn.py
- lms/envs/common.py 1 addition, 1 deletionlms/envs/common.py
- openedx/tests/settings.py 1 addition, 1 deletionopenedx/tests/settings.py
- pylintrc 2 additions, 2 deletionspylintrc
- pylintrc_tweaks 1 addition, 1 deletionpylintrc_tweaks
- sys_path_hacks/warn.py 0 additions, 44 deletionssys_path_hacks/warn.py
File moved
import_shims/warn.py
0 → 100644
sys_path_hacks/warn.py
deleted
100644 → 0
Please register or sign in to comment