docs: fix example for scripts ran from gui and how to optionally retrieve the coreemu instance

This commit is contained in:
Blake Harnden 2023-01-19 16:13:00 -08:00
parent db2f57ca35
commit d215330426

View file

@ -435,6 +435,6 @@ The example below has a fallback to a new CoreEmu object, in the case you would
like to run the script standalone, outside of the core-daemon. like to run the script standalone, outside of the core-daemon.
```python ```python
coreemu = globals().get("coreemu", CoreEmu()) coreemu = globals().get("coreemu") or CoreEmu()
session = coreemu.create_session() session = coreemu.create_session()
``` ```