Commit 6019663
authored
* fix(python): expose carla.command namespace on ue5 module layout
The ue5-dev wheel installs `carla` as a single extension module
(carla.cpython-*.so), not a package, so PythonAPI/carla/__init__.py is
never executed at import time. Registering the command submodule as
"carla.command" via PyImport_AddModule places it directly in
sys.modules, which makes `from carla.command import ...` work without
any __init__.py shim. Verified: from carla.command import SpawnActor,
DestroyActor; carla.command.SpawnActor.__module__ == 'carla.command'.
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
* docs(changelog): note carla.command namespace fix
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
---------
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
1 parent 2c88529 commit 6019663
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments