mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
18 lines
537 B
Python
18 lines
537 B
Python
"""Root package for the MTG deckbuilder source tree.
|
|
|
|
Ensures `python -m code.*` resolves to this project and adjusts sys.path so
|
|
legacy absolute imports like `import logging_util` (modules living under this
|
|
package) work whether you run files directly or as modules.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Make the package directory importable as a top-level for legacy absolute imports
|
|
_PKG_DIR = os.path.dirname(__file__)
|
|
if _PKG_DIR and _PKG_DIR not in sys.path:
|
|
sys.path.insert(0, _PKG_DIR)
|
|
|
|
__all__ = []
|