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.
This commit is contained in:
committed by
Kyle McCormick
parent
644963255c
commit
090e10683c
@@ -448,7 +448,7 @@ GITHUB_REPO_ROOT = ENV_ROOT / "data"
|
||||
sys.path.append(REPO_ROOT)
|
||||
# TODO: The next two path modifications will be removed in an upcoming Open edX release.
|
||||
# See docs/decisions/0007-sys-path-modification-removal.rst
|
||||
sys.path.append(REPO_ROOT / 'sys_path_hacks' / 'studio')
|
||||
sys.path.append(REPO_ROOT / 'import_shims' / 'studio')
|
||||
sys.path.append(COMMON_ROOT / 'djangoapps')
|
||||
|
||||
# For geolocation ip database
|
||||
|
||||
Reference in New Issue
Block a user