docs: fix example for scripts ran from gui and how to optionally retrieve the coreemu instance
This commit is contained in:
parent
db2f57ca35
commit
d215330426
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue