Skip to content

Commit 381f94b

Browse files
authored
DOC update the imports in the examples (#627)
1 parent d3c94fa commit 381f94b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/source/how-to/direct-client.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ In these situations, you may run the service and the client in the same process.
1515
## From a (service-side) Tree instance
1616

1717
```py
18-
from tiled.client import from_context
18+
from tiled.client import Context, from_context
1919
from tiled.examples.generated_minimal import tree
20-
from tiled.server import build_app
20+
from tiled.server.app import build_app
2121

2222
app = build_app(tree)
2323
context = Context.from_app(app)
@@ -38,9 +38,8 @@ The configuration may be given as:
3838
From a dict of configuration:
3939

4040
```py
41-
from tiled.client import from_context
42-
from tiled.examples.generated_minimal import tree
43-
from tiled.server import build_app_from_config
41+
from tiled.client import Context, from_context
42+
from tiled.server.app import build_app_from_config
4443

4544
config = {
4645
"trees": [

0 commit comments

Comments
 (0)