Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Added actor description as Actor TAGs
* Create class with functions to import points and polylines from satellite segmentation (#8946, #8949 #8950)
* Python API: Allow `from carla.command import ...` (#9367)

## CARLA 0.10.0

Expand Down
7 changes: 7 additions & 0 deletions PythonAPI/carla/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
from .carla import *


# Allow from carla.command import ...
import sys

sys.modules["carla.command"] = command
del sys
2 changes: 1 addition & 1 deletion PythonAPI/carla/src/Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void export_commands() {

using ActorPtr = carla::SharedPtr<cc::Actor>;

object command_module(handle<>(borrowed(PyImport_AddModule("libcarla.command"))));
object command_module(handle<>(borrowed(PyImport_AddModule("carla.libcarla.command"))));
scope().attr("command") = command_module;
scope submodule_scope = command_module;

Expand Down