pb_client.models.HubInfo.legacy_main_module
property
¶
legacy_main_module
Whether this hub needs the program's entry module called __main__.
Firmware from Pybricks profile v1.5.0 runs whichever module comes
first in the program, whatever it is called, and shows that module's
name as the program's name. Before v1.5.0 it looked the entry module
up by the name __main__, so it has to be called that.
Returns:
| Type | Description |
|---|---|
bool
|
True for a hub older than v1.5.0. Also true when the reported |
bool
|
profile cannot be parsed, because |
bool
|
firmware while a file-named entry module runs only on the newer |
bool
|
ones -- so it is the answer that cannot break a program. |