Skip to content

Commit cdb4a51

Browse files
fix(lang/py): update python lang docs
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent 84cd086 commit cdb4a51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • component-model/src/language-support

component-model/src/language-support/python.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Component built successfully
9797

9898
## Running components from Python Applications
9999

100-
Wasm components can also be invoked from Python applications. This walks through using tooling
101-
to call the [`app.wasm` component from the examples](../../examples/example-host/add.wasm).
100+
Wasm components can also be invoked from Python applications. This section walks through using tooling
101+
to call the [pre-built `app.wasm` component][add-wasm] in the examples.
102102

103103
> `wasmtime-py` is only able to run components built with `componentize-py` when the `--stub-wasi` option is used at build time. This is because `wasmtime-py` does not yet support [resources](../design/wit.md#resources), and `componentize-py` by default generates components which use resources from the `wasi:cli` world. See [this example](https://github.com/bytecodealliance/componentize-py/tree/main/examples/sandbox) of using the `--stub-wasi` option to generate a `wasmtime-py`-compatible component.
104104
@@ -141,3 +141,5 @@ Run the Python host program:
141141
$ python3 host.py
142142
1 + 2 = 3
143143
```
144+
145+
[add-wasm]: https://github.com/bytecodealliance/component-docs/blob/main/component-model/examples/example-host/add.wasm

0 commit comments

Comments
 (0)