mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-02-02 06:31:48 +01:00
Release v1.1.0: headless runner + tagging updates (Discard Matters, Freerunning, Craft, Spree, Explore/Map, Rad, Energy/Resource Engine, Spawn/Scion)
This commit is contained in:
parent
36abbaa1dd
commit
99005c19f8
23 changed files with 1330 additions and 420 deletions
|
|
@ -1,11 +1,18 @@
|
|||
"""Root package for the MTG deckbuilder source tree.
|
||||
|
||||
Adding this file ensures the directory is treated as a proper package so that
|
||||
`python -m code.main` resolves to this project instead of the Python stdlib
|
||||
module named `code` (which is a simple module, not a package).
|
||||
|
||||
If you still accidentally import the stdlib module, be sure you are executing
|
||||
from the project root so the local `code` package is first on sys.path.
|
||||
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__ = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue