Skip to content

Commit 3ed5b15

Browse files
committed
Add explicit support for namespace packages.
Fixes work that I'm trying out with new packages which I want to be in the tcod namespace.
1 parent 5a66130 commit 3ed5b15

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changes relevant to the users of python-tcod are documented here.
44
This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
55

66
## [Unreleased]
7+
### Added
8+
- Added explicit support for namespace packages.
9+
710
### Changed
811
- Using `libtcod 1.23.1`.
912
- Bundle `SDL 2.26.0` on Windows and MacOS.

tcod/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
import sys
1212
import warnings
13+
from pkgutil import extend_path
14+
15+
__path__ = extend_path(__path__, __name__)
1316

1417
from tcod import bsp, color, console, context, event, image, los, map, noise, path, random, tileset
1518
from tcod.console import Console # noqa: F401

0 commit comments

Comments
 (0)