31 lines
983 B
Python
31 lines
983 B
Python
"""
|
|
This is here temporarily, for backwards compatibility purposes
|
|
It should be removed in the future, and you should replace any imports
|
|
like:
|
|
from my.reddit import ...
|
|
to:
|
|
from my.reddit.all import ...
|
|
since that allows for easier overriding using namespace packages
|
|
See https://github.com/karlicoss/HPI/blob/master/doc/MODULE_DESIGN.org#allpy for more info.
|
|
"""
|
|
|
|
# prevent it from apprearing in modules list/doctor
|
|
from ..core import __NOT_HPI_MODULE__
|
|
|
|
# kinda annoying to keep it, but it's so legacy 'hpi module install my.reddit' works
|
|
# needs to be on the top level (since it's extracted via ast module)
|
|
REQUIRES = [
|
|
'git+https://github.com/karlicoss/rexport',
|
|
]
|
|
|
|
|
|
from my.core.hpi_compat import handle_legacy_import
|
|
is_legacy_import = handle_legacy_import(
|
|
parent_module_name=__name__,
|
|
legacy_submodule_name='rexport',
|
|
parent_module_path=__path__,
|
|
)
|
|
|
|
if is_legacy_import:
|
|
# todo not sure if possible to move this into legacy.py
|
|
from .rexport import *
|