Skip to content

Commit 31971e3

Browse files
committed
Clarify how to add extension for v2.
1 parent ea3e7a9 commit 31971e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/azure-functions/develop-python-worker-extensions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ Now that you've created an extension, you can use it in an app project to verify
148148
pip install -e <PYTHON_WORKER_EXTENSION_ROOT>
149149
```
150150

151-
In this example, replace `<PYTHON_WORKER_EXTENSION_ROOT>` with the file location of your extension project.
151+
In this example, replace `<PYTHON_WORKER_EXTENSION_ROOT>` with the root file location of your extension project.
152+
152153
When a customer uses your extension, they'll instead add your extension package location to the requirements.txt file, as in the following examples:
153154
154155
# [PyPI](#tab/pypi)
@@ -172,7 +173,7 @@ Now that you've created an extension, you can use it in an app project to verify
172173
173174
When running in Azure, you instead add `PYTHON_ENABLE_WORKER_EXTENSIONS=1` to the [app settings in the function app](functions-how-to-use-azure-function-app-settings.md#settings).
174175
175-
1. Add following two lines before the `main` function in \_\_init.py\_\_:
176+
1. Add following two lines before the `main` function in *\_\_init.py\_\_* file for the v1 programming model, or in the function file *function_app.py* file for the v2 programming model:
176177
177178
```python
178179
from python_worker_extension_timer import TimerExtension

0 commit comments

Comments
 (0)