Aniworld/server/__init__.py

15 lines
515 B
Python

"""Package shim: expose `server` package from `src/server`.
This file inserts the actual `src/server` directory into this package's
`__path__` so imports like `import server.models.auth` will resolve to
the code under `src/server` during tests.
"""
import os
_HERE = os.path.dirname(__file__)
_SRC_SERVER = os.path.normpath(os.path.join(_HERE, "..", "src", "server"))
# Prepend the real src/server directory to the package __path__ so
# normal imports resolve to the source tree.
__path__.insert(0, _SRC_SERVER)